diff --git a/package.json b/package.json index 9e408cbc..b718211a 100644 --- a/package.json +++ b/package.json @@ -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/", diff --git a/rollup.config.mjs b/rollup.config.mjs index 715c5907..f1b2a22c 100644 --- a/rollup.config.mjs +++ b/rollup.config.mjs @@ -88,7 +88,7 @@ export default [ commonjs(), ], output: { - file: "dist/index.esm.js", + file: "dist/index.mjs", format: "esm", sourcemap: true, },