Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 345f998

Browse files
committedOct 15, 2023
fix: esm for new flat config
1 parent 4572cf0 commit 345f998

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
],
2222
"exports": {
2323
".": {
24-
"import": "./lib/index.esm.js",
24+
"import": "./lib/index.mjs",
2525
"require": "./lib/index.cjs.js",
2626
"default": "./lib/index.cjs.js"
2727
},

‎rollup.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export default [
3030
external,
3131
output: [
3232
{ dir: 'lib', entryFileNames: '[name].cjs.js', format: 'cjs' },
33-
{ dir: 'lib', entryFileNames: '[name].esm.js', format: 'es' },
33+
{ dir: 'lib', entryFileNames: '[name].mjs', format: 'es' },
3434
],
3535
plugins: [commonjs(), resolve(), typescript(), json()],
3636
},

0 commit comments

Comments
 (0)
Please sign in to comment.