Skip to content

Commit 9c913f8

Browse files
Fix #5213: Update Babel options to restore MINIFY=false (#5214)
1 parent 7175055 commit 9c913f8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Cakefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,11 @@ transpile = (code, options = {}) ->
7878
presets.push ['minify', {mangle: no, evaluate: no, removeUndefined: no}] if options.minify
7979
babelOptions =
8080
presets: presets
81-
compact: not options.minify
81+
compact: options.minify
82+
minified: options.minify
8283
comments: not options.minify
8384
sourceType: options.sourceType
84-
{ code } = babel.transform code, babelOptions unless presets.length is 0
85+
{ code } = babel.transformSync code, babelOptions unless presets.length is 0
8586
code
8687

8788
testBuiltCode = (watch = no) ->

0 commit comments

Comments
 (0)