From 7803f042c762134a2a1ea9cb05aa6b07a90a8e1c Mon Sep 17 00:00:00 2001 From: Martin Schuhfuss Date: Tue, 30 Jul 2024 00:00:31 +0200 Subject: [PATCH] fix: rename esm bundles to .mjs --- package.json | 2 +- rollup.config.mjs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index a859c95a..0f69fb5d 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,7 @@ "author": "Justin Poehnelt", "main": "dist/index.umd.js", "unpkg": "dist/index.min.js", - "module": "dist/index.esm.js", + "module": "dist/index.esm.mjs", "types": "dist/index.d.ts", "files": [ "dist/*" diff --git a/rollup.config.mjs b/rollup.config.mjs index dd174ead..cdf223de 100644 --- a/rollup.config.mjs +++ b/rollup.config.mjs @@ -73,7 +73,7 @@ export default [ typescript({ tsconfig: "./tsconfig.json", declarationDir: "./" }), ], output: { - file: "dist/index.esm.js", + file: "dist/index.esm.mjs", format: "esm", sourcemap: true, name: "markerClusterer",