Skip to content

Commit a6e1cca

Browse files
authored
refactor: remove jsxPure warning (#585)
1 parent d464e8f commit a6e1cca

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

packages/plugin-react/src/index.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -175,12 +175,6 @@ export default function viteReact(opts: Options = {}): Plugin[] {
175175
config.command === 'build' ||
176176
config.server.hmr === false
177177

178-
if ('jsxPure' in opts) {
179-
config.logger.warnOnce(
180-
'[@vitejs/plugin-react] jsxPure was removed. You can configure esbuild.jsxSideEffects directly.',
181-
)
182-
}
183-
184178
const hooks: ReactBabelHook[] = config.plugins
185179
.map((plugin) => plugin.api?.reactBabel)
186180
.filter(defined)

0 commit comments

Comments
 (0)