1
0
Fork 0
mirror of https://github.com/jashkenas/coffeescript.git synced 2022-11-09 12:23:24 -05:00

Fix #5213: Update Babel options to restore MINIFY=false (#5214)

This commit is contained in:
Geoffrey Booth 2019-05-15 15:37:09 -07:00 committed by GitHub
parent 71750554c3
commit 9c913f86fa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -78,10 +78,11 @@ transpile = (code, options = {}) ->
presets.push ['minify', {mangle: no, evaluate: no, removeUndefined: no}] if options.minify presets.push ['minify', {mangle: no, evaluate: no, removeUndefined: no}] if options.minify
babelOptions = babelOptions =
presets: presets presets: presets
compact: not options.minify compact: options.minify
minified: options.minify
comments: not options.minify comments: not options.minify
sourceType: options.sourceType sourceType: options.sourceType
{ code } = babel.transform code, babelOptions unless presets.length is 0 { code } = babel.transformSync code, babelOptions unless presets.length is 0
code code
testBuiltCode = (watch = no) -> testBuiltCode = (watch = no) ->