diff --git a/test/cli/multiple-configs/_config.js b/test/cli/multiple-configs/_config.js new file mode 100644 index 00000000000..1a2122b4d47 --- /dev/null +++ b/test/cli/multiple-configs/_config.js @@ -0,0 +1,4 @@ +module.exports = { + description: 'generates output file when multiple configurations are specified and one build fails', + command: 'rollup -c' +}; diff --git a/test/cli/multiple-configs/_expected/bundle1.js b/test/cli/multiple-configs/_expected/bundle1.js new file mode 100644 index 00000000000..98deb0cc09f --- /dev/null +++ b/test/cli/multiple-configs/_expected/bundle1.js @@ -0,0 +1,5 @@ +'use strict'; + +var main = 0; + +module.exports = main; diff --git a/test/cli/multiple-configs/main.js b/test/cli/multiple-configs/main.js new file mode 100644 index 00000000000..7f810d3f328 --- /dev/null +++ b/test/cli/multiple-configs/main.js @@ -0,0 +1 @@ +export default 0; diff --git a/test/cli/multiple-configs/rollup.config.js b/test/cli/multiple-configs/rollup.config.js new file mode 100644 index 00000000000..fc54e0bdf34 --- /dev/null +++ b/test/cli/multiple-configs/rollup.config.js @@ -0,0 +1,14 @@ +export default [{ + entry: 'main.js', + format: 'cjs', + dest: '_actual/bundle1.js' +}, { + entry: 'main.js', + format: 'cjs', + plugins: [{ + resolveId(id) { + throw new Error("Unexpected Exception"); + } + }], + dest: '_actual/bundle2.js' +}];