This repository was archived by the owner on Jan 18, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 148
This repository was archived by the owner on Jan 18, 2022. It is now read-only.
Error: Unsupported previous source map format: [object Object] #239
Copy link
Copy link
Closed
Labels
Milestone
Description
Expected behavior
No error
Actual behavior
Emitted error but outputs seems are correct.
[ Error: Unsupported previous source map format: [object Object]
at PreviousMap.loadMap (xxx/node_modules/postcss/lib/previous-map.js:142:23)
at new PreviousMap (xxx/node_modules/postcss/lib/previous-map.js:63:25)
at new Input (xxx/node_modules/postcss/lib/input.js:79:19)
at parse (xxx/node_modules/postcss/lib/parse.js:21:17)
at new LazyResult (xxx/node_modules/postcss/lib/lazy-result.js:70:24)
at Processor.process (xxx/node_modules/postcss/lib/processor.js:117:12)
at doCompileStyle (xxx/node_modules/@vue/component-compiler-utils/dist/compileStyle.js:42:35)
at Object.compileStyle (xxx/node_modules/@vue/component-compiler-utils/dist/compileStyle.js:8:12)
at SFCCompiler.compileStyle (xxx/node_modules/@vue/component-compiler/dist/compiler.js:104:51)
at input.styles.descriptor.styles.map.style (xxx/node_modules/rollup-plugin-vue/dist/index.js:104:73)
at Array.map (<anonymous>)
at Object.<anonymous> (xxx/node_modules/rollup-plugin-vue/dist/index.js:104:51)
at Generator.next (<anonymous>)
at xxx/node_modules/rollup-plugin-vue/dist/index.js:7:71
at new Promise (<anonymous>)
at __awaiter (xxx/node_modules/rollup-plugin-vue/dist/index.js:3:12) ]
Steps to reproduce the behavior
Using multiple rollup configs and extract css with css: false
will emit this error on the second build.
// rollup.config.js
import vue from 'rollup-plugin-vue';
import css from 'rollup-plugin-css-only';
export default [{
input: 'main.js',
output: {
file: 'bundle.esm.js',
format: 'esm',
},
plugin: [
vue({
css: false,
}),
css({
output: 'bundle.css',
}),
],
}, {
input: 'main.js',
output: {
file: 'bundle.common.js',
format: 'cjs',
name: 'foo',
},
plugin: [
vue({
css: false,
}),
css({
output: 'bundle.css',
}),
],
}