From 9c913f86fa7cbb57609eaba403b180783f084ea4 Mon Sep 17 00:00:00 2001 From: Geoffrey Booth Date: Wed, 15 May 2019 15:37:09 -0700 Subject: [PATCH] Fix #5213: Update Babel options to restore MINIFY=false (#5214) --- Cakefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Cakefile b/Cakefile index 7f3e36bb..56978e44 100644 --- a/Cakefile +++ b/Cakefile @@ -78,10 +78,11 @@ transpile = (code, options = {}) -> presets.push ['minify', {mangle: no, evaluate: no, removeUndefined: no}] if options.minify babelOptions = presets: presets - compact: not options.minify + compact: options.minify + minified: options.minify comments: not options.minify sourceType: options.sourceType - { code } = babel.transform code, babelOptions unless presets.length is 0 + { code } = babel.transformSync code, babelOptions unless presets.length is 0 code testBuiltCode = (watch = no) ->