Skip to content

Commit c4b9878

Browse files
authored
feat(jsx): set optimizeDeps.rolldownOptions.transform.jsx: 'preserve' (#650)
1 parent 3d7dcc1 commit c4b9878

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,11 @@ function vueJsxPlugin(options: Options = {}): Plugin {
8080
config.define?.__VUE_PROD_HYDRATION_MISMATCH_DETAILS__,
8181
) ?? false,
8282
},
83+
optimizeDeps: this.meta.rolldownVersion
84+
? {
85+
rolldownOptions: { transform: { jsx: 'preserve' } },
86+
}
87+
: {},
8388
}
8489
},
8590

0 commit comments

Comments
 (0)