|
@ -94,7 +94,8 @@ describe( 'rollup', function () { |
|
|
try { |
|
|
try { |
|
|
if ( config.babel ) { |
|
|
if ( config.babel ) { |
|
|
code = babel.transform( result.code, { |
|
|
code = babel.transform( result.code, { |
|
|
blacklist: [ 'es6.modules' ] |
|
|
blacklist: [ 'es6.modules' ], |
|
|
|
|
|
loose: [ 'es6.classes' ] |
|
|
}).code; |
|
|
}).code; |
|
|
} else { |
|
|
} else { |
|
|
code = result.code; |
|
|
code = result.code; |
|
@ -262,7 +263,8 @@ describe( 'rollup', function () { |
|
|
try { |
|
|
try { |
|
|
if ( config.babel ) { |
|
|
if ( config.babel ) { |
|
|
code = babel.transform( code, { |
|
|
code = babel.transform( code, { |
|
|
blacklist: [ 'es6.modules' ] |
|
|
blacklist: [ 'es6.modules' ], |
|
|
|
|
|
loose: [ 'es6.classes' ] |
|
|
}).code; |
|
|
}).code; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|