Skip to content

Commit ca17542

Browse files
committed
feat: add deprecation warning to plugin-oxc
1 parent c00a103 commit ca17542

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

packages/plugin-react-oxc/src/index.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,13 @@ export default function viteReact(opts: Options = {}): Plugin[] {
6262
},
6363
}
6464
},
65+
configResolved(config) {
66+
config.logger.warn(
67+
'@vitejs/plugin-react-oxc is deprecated. ' +
68+
'Please use @vitejs/plugin-react instead. ' +
69+
'The changes of this plugin is now included in @vitejs/plugin-react.',
70+
)
71+
},
6572
options() {
6673
if (!this.meta.rolldownVersion) {
6774
throw new Error(

0 commit comments

Comments
 (0)