You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 24, 2025. It is now read-only.
I'd like to try it out with React SWC plugin, but I don't see where to pass those options. Simply creating .swcrc file (with the following contents) at the root of the project does nothing:
I also don't see a config to pass SWC options to the React SWC plugin:
import{PluginOption}from"vite";typeOptions={/** * Control where the JSX factory is imported from. * @default "react" */jsxImportSource?: string;/** * Enable TypeScript decorators. Requires experimentalDecorators in tsconfig. * @default false */tsDecorators?: boolean;/** * Use SWC plugins. Enable SWC at build time. * @default undefined */plugins?: [string,Record<string,any>][];};declareconstreact: (_options?: Options)=>PluginOption[];exportdefaultreact;
I would expect being able to pass SWC options to the React SWC plugin like so, if the options in .swcrc file are not picked up when using SWC via the React SWC plugin: