Skip to content

Commit

Permalink
Do not use loose mode for ES5 transpilation (ampproject#879)
Browse files Browse the repository at this point in the history
  • Loading branch information
kristoferbaxter authored Jun 25, 2020
1 parent 4e3ebdf commit 2aea0f3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion config/rollup.plugins.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export function babelPlugin({ transpileToES5, allowConsole = false, allowPostMes
'@babel/env',
{
targets,
loose: true,
loose: !transpileToES5,
modules: false,
bugfixes: true,
},
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,16 +89,16 @@
"./dist/**/*.mjs"
],
"./dist/worker/worker.mjs": {
"brotli": "11.4 kB"
"brotli": "11.5 kB"
},
"./dist/worker/worker.js": {
"brotli": "12.6 kB"
"brotli": "13 kB"
},
"./dist/main.mjs": {
"brotli": "3.73 kB"
"brotli": "4 kB"
},
"./dist/main.js": {
"brotli": "4.1 kB"
"brotli": "5 kB"
}
},
"esm": {
Expand Down

0 comments on commit 2aea0f3

Please sign in to comment.