Upgrade rollup and plugins to fix build (#6493)

This commit is contained in:
Ben McCann 2019-09-04 04:44:01 -07:00 committed by Evert Timberg
parent 2954cf8a99
commit f68b8adaac
5 changed files with 12764 additions and 11 deletions

1
.gitignore vendored
View File

@ -6,7 +6,6 @@
/gh-pages
/jsdoc
/node_modules
/package-lock.json
.DS_Store
.idea
.project

View File

@ -39,7 +39,8 @@ function run(bin, args, done) {
return new Promise(function(resolve, reject) {
var exe = '"' + process.execPath + '"';
var src = require.resolve(bin);
var ps = exec([exe, src].concat(args || []).join(' '));
var cmd = [exe, src].concat(args || []).join(' ');
var ps = exec(cmd);
ps.stdout.pipe(process.stdout);
ps.stderr.pipe(process.stderr);
@ -80,7 +81,7 @@ function bowerTask() {
}
function buildTask() {
return run('rollup/bin/rollup', ['-c', argv.watch ? '--watch' : '']);
return run('rollup/dist/bin/rollup', ['-c', argv.watch ? '--watch' : '']);
}
function packageTask() {

12751
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -52,14 +52,14 @@
"karma-firefox-launcher": "^1.0.1",
"karma-jasmine": "^2.0.1",
"karma-jasmine-html-reporter": "^1.4.0",
"karma-rollup-preprocessor": "^6.1.1",
"karma-rollup-preprocessor": "^7.0.0",
"merge-stream": "^1.0.1",
"pixelmatch": "^4.0.2",
"rollup": "^0.67.4",
"rollup-plugin-commonjs": "^9.2.0",
"rollup": "^1.0.0",
"rollup-plugin-commonjs": "^10.0.0",
"rollup-plugin-istanbul": "^2.0.1",
"rollup-plugin-node-resolve": "^3.4.0",
"rollup-plugin-terser": "^3.0.0",
"rollup-plugin-node-resolve": "^5.0.0",
"rollup-plugin-terser": "^5.0.0",
"yargs": "^12.0.5"
},
"dependencies": {

View File

@ -95,9 +95,11 @@ function stylesheet(config = {}) {
this.error('failed to guess the output file name');
}
bundle[name] = {
code: styles.filter(v => !!v).join('')
};
this.emitFile({
type: 'asset',
source: styles.filter(v => !!v).join(''),
fileName: name
});
}
};
}