Skip to content

Commit cfdae8a

Browse files
fix: Generate proper ESM modules instead of CommonJS
- Update tsconfig.esm.json to use module: esnext and moduleResolution: bundler - ESM build now generates true ES modules with import/export syntax - Fixes violation where ESM build was generating CommonJS code with require/exports
1 parent ae202b9 commit cfdae8a

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

dist/esm/arrayInit.js

Lines changed: 1 addition & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/esm/arrayInit.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tsconfig.esm.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
"compilerOptions": {
44
"outDir": "./dist/esm",
55
"declaration": false,
6-
"module": "node16",
7-
"moduleResolution": "node16"
6+
"module": "esnext",
7+
"moduleResolution": "bundler",
8+
"target": "es2022"
89
}
910
}

0 commit comments

Comments
 (0)