commit afb91f0dc06294d9a1fdb30c6821eaeed71ae427
parent 54d5cb4584e8c0378fe09ee4c9b8e7760ff293af
Author: Sebastian <sebasjm@gmail.com>
Date: Tue, 16 Jan 2024 15:50:17 -0300
resolve -> path
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/packages/web-util/build.mjs b/packages/web-util/build.mjs
@@ -63,7 +63,7 @@ const nativeNodeModulesPlugin = {
// If a ".node" file is imported within a module in the "file" namespace, resolve
// it to an absolute path and put it into the "node-file" virtual namespace.
build.onResolve({ filter: /\.node$/, namespace: 'file' }, args => ({
- path: require.resolve(args.path, { paths: [args.resolveDir] }),
+ path: path.resolve(args.path, { paths: [args.resolveDir] }),
namespace: 'node-file',
}))