Skip to content

Commit

Permalink
Merge pull request #1759 from haraldrudell/master
Browse files Browse the repository at this point in the history
Support ES.Next object rest spread in config files like rollup.config.js
  • Loading branch information
lukastaegert committed Dec 5, 2017
2 parents d92f072 + 7976290 commit e63b11e
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 e63b11e

Please sign in to comment.