Skip to content

Commit

Permalink
fix: esm for new flat config
Browse files Browse the repository at this point in the history
  • Loading branch information
amritk committed Oct 15, 2023
1 parent 4572cf0 commit 345f998
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
],
"exports": {
".": {
"import": "./lib/index.esm.js",
"import": "./lib/index.mjs",
"require": "./lib/index.cjs.js",
"default": "./lib/index.cjs.js"
},
Expand Down
2 changes: 1 addition & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export default [
external,
output: [
{ dir: 'lib', entryFileNames: '[name].cjs.js', format: 'cjs' },
{ dir: 'lib', entryFileNames: '[name].esm.js', format: 'es' },
{ dir: 'lib', entryFileNames: '[name].mjs', format: 'es' },
],
plugins: [commonjs(), resolve(), typescript(), json()],
},
Expand Down

0 comments on commit 345f998

Please sign in to comment.