This repository was archived by the owner on Jan 18, 2022. It is now read-only.
Commit 4110dbb
feat: Improve compatibility with other plugins that uses query parameters (#185)
change old query syntax:
{path}.vue?{ type: string, index?: number }#.{lang}
to:
{path}.vue.{lang}?rollup_plugin_vue={ type: string, lang: string, index?: number }
Plugins, like rollup-plugin-postcss also uses query params
for itself purpose, in this case if we provide { css: false } as options
to rollup-plugin-vue then we will get error from rollup, because
postcss can not recognize file ".vue?{...}#.css" as css file
and rollup-plugin-vue done its work also.
Rollup config where vue + postcss is not work:
export default [
{
input: '...',
output: [
{
file: '...',
format: 'es'
}
],
plugins: [
// ...
vue({
css: false,
}),
postcss()
]
}
];1 parent 3d1d210 commit 4110dbb
File tree
5 files changed
+6715
-1876
lines changed- src
5 files changed
+6715
-1876
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
5 | 12 | | |
6 | | - | |
7 | 13 | | |
8 | 14 | | |
9 | 15 | | |
0 commit comments