Skip to content

Commit 0819f8c

Browse files
committed
add warning
1 parent 3a408a0 commit 0819f8c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/plugin-react/src/index.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,11 @@ export default function viteReact(opts: Options = {}): PluginOption[] {
149149
'[@vitejs/plugin-react] Support for classic runtime is deprecated.',
150150
)
151151
}
152+
if ('jsxPure' in opts) {
153+
config.logger.warnOnce(
154+
'[@vitejs/plugin-react] jsxPure was removed. You can configure esbuild.jsxSideEffects directly.',
155+
)
156+
}
152157

153158
runPluginOverrides = (babelOptions, context) => {
154159
const hooks = config.plugins

0 commit comments

Comments
 (0)