Skip to content

Commit 3a408a0

Browse files
committed
chore!: drop jsxPure
1 parent 074ab46 commit 3a408a0

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

packages/plugin-react/src/index.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)