diff options
Diffstat (limited to 'packages/web-util/build.mjs')
-rwxr-xr-x | packages/web-util/build.mjs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/web-util/build.mjs b/packages/web-util/build.mjs index 6320b4937..1dffe96e4 100755 --- 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', })) |