Skip to content

Commit a69ee49

Browse files
committed
fix: wraning react/jsx-runtime
1 parent 6ef8d05 commit a69ee49

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

packages/plugin-vue-jsx/src/index.ts

+9
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,13 @@ function vueJsxPlugin(options: Options = {}): Plugin {
5959
oxc: {
6060
include: /\.ts$/,
6161
},
62+
optimizeDeps: {
63+
rollupOptions: {
64+
jsx: {
65+
mode: 'classic', // TODO using rolldown jsx preserve
66+
},
67+
},
68+
},
6269
define: {
6370
__VUE_OPTIONS_API__: config.define?.__VUE_OPTIONS_API__ ?? true,
6471
__VUE_PROD_DEVTOOLS__: config.define?.__VUE_PROD_DEVTOOLS__ ?? false,
@@ -138,6 +145,7 @@ function vueJsxPlugin(options: Options = {}): Plugin {
138145
return {
139146
code: result.code,
140147
map: result.map,
148+
moduleType: 'js',
141149
}
142150
}
143151

@@ -263,6 +271,7 @@ function vueJsxPlugin(options: Options = {}): Plugin {
263271
return {
264272
code: result.code,
265273
map: result.map,
274+
moduleType: 'js',
266275
}
267276
}
268277
},

0 commit comments

Comments
 (0)