We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
overrides
api.reactBabel
1 parent ff37c03 commit 104bdb5Copy full SHA for 104bdb5
1 file changed
packages/plugin-react/src/index.ts
@@ -60,6 +60,7 @@ export type BabelOptions = Omit<
60
export interface ReactBabelOptions extends BabelOptions {
61
plugins: Extract<BabelOptions['plugins'], any[]>
62
presets: Extract<BabelOptions['presets'], any[]>
63
+ overrides: Extract<BabelOptions['overrides'], any[]>
64
parserOpts: ParserOptions & {
65
plugins: Extract<ParserOptions['plugins'], any[]>
66
}
@@ -95,6 +96,7 @@ export default function viteReact(opts: Options = {}): PluginOption[] {
95
96
97
babelOptions.plugins ||= []
98
babelOptions.presets ||= []
99
+ babelOptions.overrides ||= []
100
babelOptions.parserOpts ||= {} as any
101
babelOptions.parserOpts.plugins ||= opts.parserPlugins || []
102
0 commit comments