Skip to content

Commit

Permalink
fix: wraning react/jsx-runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
underfin committed Dec 17, 2024
1 parent 6ef8d05 commit a69ee49
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/plugin-vue-jsx/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,13 @@ function vueJsxPlugin(options: Options = {}): Plugin {
oxc: {
include: /\.ts$/,
},
optimizeDeps: {
rollupOptions: {
jsx: {
mode: 'classic', // TODO using rolldown jsx preserve
},
},
},
define: {
__VUE_OPTIONS_API__: config.define?.__VUE_OPTIONS_API__ ?? true,
__VUE_PROD_DEVTOOLS__: config.define?.__VUE_PROD_DEVTOOLS__ ?? false,
Expand Down Expand Up @@ -138,6 +145,7 @@ function vueJsxPlugin(options: Options = {}): Plugin {
return {
code: result.code,
map: result.map,
moduleType: 'js',
}
}

Expand Down Expand Up @@ -263,6 +271,7 @@ function vueJsxPlugin(options: Options = {}): Plugin {
return {
code: result.code,
map: result.map,
moduleType: 'js',
}
}
},
Expand Down

0 comments on commit a69ee49

Please sign in to comment.