From 1a50235c6c42611bbe6b0efc9c4c246a7b3e8a59 Mon Sep 17 00:00:00 2001 From: Martin Schuhfuss Date: Sat, 17 Feb 2024 00:07:50 +0100 Subject: [PATCH] fix: change filename for esm build to use .mjs extension (#831) --- package.json | 2 +- rollup.config.mjs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index a8b34ea9..a95e346e 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, },