From b890bfd465a73ccfdb0b6a4119ae641da40f592b Mon Sep 17 00:00:00 2001 From: mderrier Date: Mon, 23 Nov 2020 12:16:08 +0100 Subject: [PATCH] fix(build): remove module/es6 --- package.json | 1 - rollup.config.js | 57 +++++++++--------------------------------------- scripts/build.sh | 4 ++-- 3 files changed, 12 insertions(+), 50 deletions(-) diff --git a/package.json b/package.json index 94ae15c57..f2753794c 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,6 @@ "postversion": "bash ./scripts/github-release.sh" }, "main": "./dist/mathlive.js", - "module": "./dist/mathlive.mjs", "types": "./dist/public/mathlive.d.ts", "files": [ "/dist", diff --git a/rollup.config.js b/rollup.config.js index 10fec33d1..2c3301a25 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -174,33 +174,16 @@ const ROLLUP = [ }), typescript(TYPESCRIPT_OPTIONS), ], - output: true - ? [ - // JavaScript native module - // (stricly speaking not necessary, since the UMD output is module - // compatible, but this gives us a "clean" module) - { - format: 'es', - file: `${BUILD_DIRECTORY}/mathlive.mjs`, - sourcemap: !PRODUCTION, - exports: 'named', - }, - // UMD file, suitable for import,