File tree 1 file changed +3
-8
lines changed
packages/plugin-vue-jsx/src
1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,9 @@ function vueJsxPlugin(options: Options = {}): Plugin {
38
38
let needHmr = false
39
39
let needSourceMap = true
40
40
41
+ const { include, exclude, babelPlugins = [ ] , ...babelPluginOptions } = options
42
+ const filter = createFilter ( include || / \. [ j t ] s x $ / , exclude )
43
+
41
44
return {
42
45
name : 'vite:vue-jsx' ,
43
46
@@ -75,14 +78,6 @@ function vueJsxPlugin(options: Options = {}): Plugin {
75
78
76
79
async transform ( code , id , opt ) {
77
80
const ssr = opt ?. ssr === true
78
- const {
79
- include,
80
- exclude,
81
- babelPlugins = [ ] ,
82
- ...babelPluginOptions
83
- } = options
84
-
85
- const filter = createFilter ( include || / \. [ j t ] s x $ / , exclude )
86
81
const [ filepath ] = id . split ( '?' )
87
82
88
83
// use id for script blocks in Vue SFCs (e.g. `App.vue?vue&type=script&lang.jsx`)
You can’t perform that action at this time.
0 commit comments