File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
packages/plugin-vue-jsx/src Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -59,6 +59,13 @@ function vueJsxPlugin(options: Options = {}): Plugin {
5959 oxc : {
6060 include : / \. t s $ / ,
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 } ,
You can’t perform that action at this time.
0 commit comments