Skip to content

Commit

Permalink
fix(transform-metering): suppress a size warning by not compacting
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelfig committed Nov 12, 2020
1 parent 40bfda1 commit af1648b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/transform-metering/src/transform.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,10 @@ const ${reid}=RegExp(${JSON.stringify(pattern)},${JSON.stringify(flags)});`);
const output = babelCore.transformFromAstSync(ast, source, {
generatorOpts: {
retainLines: true,
// Specify `compact: false` to silence:
// [BABEL] Note: The code generator has deoptimised the styling of
// undefined as it exceeds the max of 500KB.
compact: false,
},
plugins: [meteringPlugin(regexpList)],
ast: true,
Expand Down

0 comments on commit af1648b

Please sign in to comment.