Skip to content

Commit

Permalink
Disable Loose Mode for ES5 Output (ampproject#328)
Browse files Browse the repository at this point in the history
* Loose mode won't work for us
* es5 is not loose mode
  • Loading branch information
kristoferbaxter authored Mar 5, 2019
1 parent afe3f7a commit b10e0f9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/rollup.plugins.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export function babelPlugin({transpileToES5, allowConsole = false, allowPostMess
'@babel/env',
{
targets,
loose: true,
loose: transpileToES5 ? false : true,
modules: false,
},
],
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ampproject/worker-dom",
"version": "0.2.17",
"version": "0.2.18",
"description": "A facsimile of a modern DOM implementation intended to run in a Web Worker.",
"main": "dist/index",
"module": "dist/index.mjs",
Expand Down

0 comments on commit b10e0f9

Please sign in to comment.