Skip to content

Commit

Permalink
Support ES.Next object rest spread in config files like rollup.config.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Harald Rudell committed Nov 24, 2017
1 parent b884488 commit 7976290
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion bin/src/run/loadConfigFile.js
@@ -1,3 +1,4 @@
import buble from 'rollup-plugin-buble'
import path from 'path';
import chalk from 'chalk';
import * as rollup from 'rollup';
Expand All @@ -13,7 +14,10 @@ export default function loadConfigFile (configFile, silent) {
external: id => {
return (id[0] !== '.' && !path.isAbsolute(id)) || id.slice(-5,id.length) === '.json';
},
onwarn: warnings.add
onwarn: warnings.add,
plugins: [
buble({objectAssign: 'Object.assign'}),
],
})
.then( bundle => {
if ( !silent && warnings.count > 0 ) {
Expand Down

0 comments on commit 7976290

Please sign in to comment.