Skip to content
This repository was archived by the owner on Jan 18, 2022. It is now read-only.

Commit 4110dbb

Browse files
Hokidznck
authored andcommitted
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

5 files changed

+6715
-1876
lines changed

.babelrc

+9-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
11
{
22
"presets": [
3-
[ "es2015", { "modules": false }],
4-
"stage-2"
3+
[
4+
"@babel/preset-env",
5+
{
6+
"target": "node"
7+
}
8+
]
9+
],
10+
"plugins": [
11+
"@babel/transform-runtime"
512
],
6-
"plugins": ["transform-runtime"],
713
"retainLines": true,
814
"comments": true
915
}

0 commit comments

Comments
 (0)