File tree Expand file tree Collapse file tree
packages/plugin-react/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -31,12 +31,6 @@ export interface Options {
3131 * @default "react"
3232 */
3333 jsxImportSource ?: string
34- /**
35- * Set this to `true` to annotate the JSX factory with `\/* @__PURE__ *\/`.
36- * This option is ignored when `jsxRuntime` is not `"automatic"`.
37- * @default true
38- */
39- jsxPure ?: boolean
4034 /**
4135 * Babel configuration applied in both dev and prod.
4236 */
@@ -128,15 +122,13 @@ export default function viteReact(opts: Options = {}): PluginOption[] {
128122 } ,
129123 jsx : 'transform' ,
130124 jsxImportSource : opts . jsxImportSource ,
131- jsxSideEffects : opts . jsxPure === false ,
132125 } ,
133126 }
134127 } else {
135128 return {
136129 esbuild : {
137130 jsx : 'automatic' ,
138131 jsxImportSource : opts . jsxImportSource ,
139- jsxSideEffects : opts . jsxPure === false ,
140132 } ,
141133 }
142134 }
You can’t perform that action at this time.
0 commit comments