Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

setup: use --moduleResolution Bundler when running esm build

Abdullah Atta88aecb3af292
diff --git a/scripts/build.mjs b/scripts/build.mjs
index aa0b0011d..c970a2fe7 100644
--- a/scripts/build.mjs
+++ b/scripts/build.mjs
@@ -42,6 +42,8 @@ await Promise.all([
"false",
"--module",
"commonjs",
+ "--moduleResolution",
+ "node",
"--outDir",
"dist/cjs",
IS_WATCH ? "--watch" : ""
@@ -53,6 +55,8 @@ await Promise.all([
"false",
"--module",
"esnext",
+ "--moduleResolution",
+ "Bundler",
"--outDir",
"dist/esm",
IS_WATCH ? "--watch" : ""