From fcfa78f98c7b050adf2994f117069171f9306a7f Mon Sep 17 00:00:00 2001 From: Nikita Karamov Date: Wed, 25 Mar 2020 22:51:16 +0100 Subject: [PATCH] Remove ESM build Since there is nothing to import, I don't think ESM can be really used. --- package.json | 7 ++----- rollup/rollup.config.prod.js | 5 ----- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/package.json b/package.json index 6a945c4..e5d6c12 100644 --- a/package.json +++ b/package.json @@ -23,10 +23,8 @@ "README.md" ], "main": "./dist/shareon.cjs", - "module": "./dist/shareon.mjs", "exports": { - "require": "./dist/shareon.cjs", - "import": "./dist/shareon.mjs" + "require": "./dist/shareon.cjs" }, "unpkg": "./dist/shareon.min.js", "scripts": { @@ -67,8 +65,7 @@ { "limit": "1 KB", "path": [ - "./dist/shareon.cjs", - "./dist/shareon.mjs" + "./dist/shareon.cjs" ] }, { diff --git a/rollup/rollup.config.prod.js b/rollup/rollup.config.prod.js index 158e2d3..e8830b1 100644 --- a/rollup/rollup.config.prod.js +++ b/rollup/rollup.config.prod.js @@ -8,11 +8,6 @@ const outputDir = './dist/'; export default { input, output: [ - { - name, - format: 'esm', - file: `${outputDir}${name}.mjs`, - }, { name, format: 'cjs',