Skip to content

Commit 7332859

Browse files
committed
fix(vue-jsx-vapor): move macros before compiler-rs
1 parent db4b76b commit 7332859

File tree

1 file changed

+5
-5
lines changed
  • packages/vue-jsx-vapor/src

1 file changed

+5
-5
lines changed

packages/vue-jsx-vapor/src/raw.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ const plugin = (options: Options = {}): UnpluginOptions[] => {
1818
let needSourceMap = false
1919
// options.sourceMap || false
2020
return [
21+
...(options.macros === false
22+
? []
23+
: options.macros
24+
? [macros(options.macros === true ? undefined : options.macros)]
25+
: []),
2126
{
2227
enforce: 'pre',
2328
name: 'vue-jsx-vapor',
@@ -94,11 +99,6 @@ const plugin = (options: Options = {}): UnpluginOptions[] => {
9499
}
95100
},
96101
},
97-
...(options.macros === false
98-
? []
99-
: options.macros
100-
? [macros(options.macros === true ? undefined : options.macros)]
101-
: []),
102102
]
103103
}
104104
export default plugin

0 commit comments

Comments
 (0)