From 7f45fd58bcdf8a521a1e145f33cbdb3f156925b7 Mon Sep 17 00:00:00 2001 From: TomokiMiyauci Date: Fri, 14 May 2021 21:08:31 +0900 Subject: [PATCH] :bug: Optimize bundle size with ES modules --- package.json | 3 ++- rollup.config.ts | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 5f78b3b..26f6478 100644 --- a/package.json +++ b/package.json @@ -66,6 +66,7 @@ }, "browserslist": [ "defaults", - "node 10" + "not IE 11", + "node 14" ] } diff --git a/rollup.config.ts b/rollup.config.ts index 192944e..a9a0220 100644 --- a/rollup.config.ts +++ b/rollup.config.ts @@ -18,11 +18,11 @@ const replaceOption = { const config = [ { input: inputFilePath, - // eslint-disable-next-line no-sparse-arrays plugins: [ replace(replaceOption), ts({ transpiler: "babel", + browserslist: ["defaults", "node 6", "supports es6-module"], tsconfig: (resolvedConfig) => ({ ...resolvedConfig, declaration: false,