Skip to content

Commit

Permalink
add back the babel-transform-runtime and transform helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
blowery committed Jun 14, 2018
1 parent a9a1673 commit 5353b77
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 8 deletions.
9 changes: 8 additions & 1 deletion .babelrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,14 @@ const config = {
{ async: isCalypsoClient && codeSplit },
],
'@babel/plugin-proposal-export-default-from',
[ '@babel/transform-runtime', { regenerator: false } ],
[
'@babel/transform-runtime',
{
helpers: true,
polyfill: false,
regenerator: false,
},
],
isCalypsoClient && './inline-imports.js',
] ),
env: {
Expand Down
21 changes: 15 additions & 6 deletions npm-shrinkwrap.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const config = require( './server/config' );
const calypsoEnv = config( 'env_id' );
const bundleEnv = config( 'env' );
const isDevelopment = bundleEnv !== 'production';
const shouldMinify = process.env.MINIFY_JS === 'true' || bundleEnv === 'production';
const shouldMinify = process.env.MINIFY_JS === 'true';
const shouldEmitStats = process.env.EMIT_STATS === 'true';
const shouldCheckForCycles = process.env.CHECK_CYCLES === 'true';
const codeSplit = config.isEnabled( 'code-splitting' );
Expand Down

0 comments on commit 5353b77

Please sign in to comment.