diff --git a/gulp/tasks/scripts.js b/gulp/tasks/scripts.js index 726e306..d8bc7dd 100644 --- a/gulp/tasks/scripts.js +++ b/gulp/tasks/scripts.js @@ -1,5 +1,5 @@ -const rollup = require('rollup').rollup; -const configs = require('../config').configs; +const { rollup } = require('rollup'); +const { configs } = require('../config'); module.exports = function scripts() { const bundles = configs.map(config => rollup(config).then((bundle) => { diff --git a/gulp/tasks/test.js b/gulp/tasks/test.js index b6187ad..05cad6b 100644 --- a/gulp/tasks/test.js +++ b/gulp/tasks/test.js @@ -6,17 +6,17 @@ module.exports = function test() { return gulp.src('test/runner.html', { read: false, }) - .pipe(mochaPhantomJS({ - phantomjs: { - useColors: true, - }, - })) + .pipe(mochaPhantomJS({ + phantomjs: { + useColors: true, + }, + })) - // https://github.com/gulpjs/gulp/issues/259#issuecomment-61976830 - .on('error', function onerror(err) { - if (config.watch) { - console.error(err.message); - this.emit('end'); - } - }); + // https://github.com/gulpjs/gulp/issues/259#issuecomment-61976830 + .on('error', function onerror(err) { + if (config.watch) { + console.error(err.message); + this.emit('end'); + } + }); };