We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 65df3c1 commit a8a36acCopy full SHA for a8a36ac
1 file changed
src/lib/babel-custom.js
@@ -180,11 +180,13 @@ export default () => {
180
babelOptions.plugins || [],
181
);
182
183
- babelOptions.generatorOpts = {
184
- minified: customOptions.compress,
185
- compact: customOptions.compress,
186
- shouldPrintComment: comment => /[@#]__PURE__/.test(comment),
187
- };
+ if (customOptions.compress) {
+ babelOptions.generatorOpts = {
+ minified: true,
+ compact: true,
+ shouldPrintComment: comment => /[@#]__PURE__/.test(comment),
188
+ };
189
+ }
190
191
return babelOptions;
192
},
0 commit comments