mirror of
https://github.com/jashkenas/coffeescript.git
synced 2022-11-09 12:23:24 -05:00
parent
71750554c3
commit
9c913f86fa
1 changed files with 3 additions and 2 deletions
5
Cakefile
5
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) ->
|
||||
|
|
Loading…
Reference in a new issue