summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2024-01-16 15:50:17 -0300
committerSebastian <sebasjm@gmail.com>2024-01-16 15:50:17 -0300
commitafb91f0dc06294d9a1fdb30c6821eaeed71ae427 (patch)
treec94d50b4fe93a19737487a9bac17409a2ce8d55a
parent54d5cb4584e8c0378fe09ee4c9b8e7760ff293af (diff)
downloadwallet-core-afb91f0dc06294d9a1fdb30c6821eaeed71ae427.tar.gz
wallet-core-afb91f0dc06294d9a1fdb30c6821eaeed71ae427.tar.bz2
wallet-core-afb91f0dc06294d9a1fdb30c6821eaeed71ae427.zip
resolve -> path
-rwxr-xr-xpackages/web-util/build.mjs2
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',
}))