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" : ""