We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2096fd0 commit be62552Copy full SHA for be62552
src/index.ts
@@ -69,8 +69,6 @@ type Options = {
69
useAtYourOwnRisk_mutateSwcOptions?: (options: SWCOptions) => void;
70
};
71
72
-const isWebContainer = globalThis.process?.versions?.["webcontainer"];
73
-
74
const react = (_options?: Options): PluginOption[] => {
75
let hmrDisabled = false;
76
const options = {
@@ -120,11 +118,6 @@ const react = (_options?: Options): PluginOption[] => {
120
118
"[vite:react-swc] The MDX plugin should be placed before this plugin",
121
119
);
122
}
123
- if (isWebContainer) {
124
- config.logger.warn(
125
- "[vite:react-swc] SWC is currently not supported in WebContainers. You can use the default React plugin instead.",
126
- );
127
- }
128
},
129
transformIndexHtml: (_, config) => [
130
{
0 commit comments