From afb91f0dc06294d9a1fdb30c6821eaeed71ae427 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Tue, 16 Jan 2024 15:50:17 -0300 Subject: resolve -> path --- packages/web-util/build.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'packages/web-util/build.mjs') 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', })) -- cgit v1.2.3