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.
1 parent ef10925 commit e93cf8bCopy full SHA for e93cf8b
packages/plugin-react/src/index.ts
@@ -252,17 +252,7 @@ export default function viteReact(opts: Options = {}): PluginOption[] {
252
}
253
254
255
- const parserPlugins: typeof babelOptions.parserOpts.plugins = [
256
- ...babelOptions.parserOpts.plugins,
257
- 'importMeta',
258
- // This plugin is applied before esbuild transforms the code,
259
- // so we need to enable some stage 3 syntax that is supported in
260
- // TypeScript and some environments already.
261
- 'topLevelAwait',
262
- 'classProperties',
263
- 'classPrivateProperties',
264
- 'classPrivateMethods',
265
- ]
+ const parserPlugins = [...babelOptions.parserOpts.plugins]
266
267
if (!extension.endsWith('.ts')) {
268
parserPlugins.push('jsx')
0 commit comments