Skip to content

Commit

Permalink
🐛 Optimize bundle size with ES modules
Browse files Browse the repository at this point in the history
  • Loading branch information
TomokiMiyauci committed May 14, 2021
1 parent 497c499 commit 7f45fd5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
},
"browserslist": [
"defaults",
"node 10"
"not IE 11",
"node 14"
]
}
2 changes: 1 addition & 1 deletion rollup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 7f45fd5

Please sign in to comment.