Skip to content

Commit

Permalink
fix: change filename for esm build to use .mjs extension (#831)
Browse files Browse the repository at this point in the history
  • Loading branch information
usefulthink authored Feb 16, 2024
1 parent 2d95119 commit 1a50235
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 @@ -19,7 +19,7 @@
"author": "Justin Poehnelt",
"main": "dist/index.umd.js",
"unpkg": "dist/index.min.js",
"module": "dist/index.esm.js",
"module": "dist/index.mjs",
"types": "dist/src/index.d.ts",
"files": [
"dist/",
Expand Down
2 changes: 1 addition & 1 deletion rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export default [
commonjs(),
],
output: {
file: "dist/index.esm.js",
file: "dist/index.mjs",
format: "esm",
sourcemap: true,
},
Expand Down

0 comments on commit 1a50235

Please sign in to comment.