Skip to content

Commit be62552

Browse files
authored
fix: remove webcontainer warning (#268)
1 parent 2096fd0 commit be62552

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/index.ts

-7
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,6 @@ type Options = {
6969
useAtYourOwnRisk_mutateSwcOptions?: (options: SWCOptions) => void;
7070
};
7171

72-
const isWebContainer = globalThis.process?.versions?.["webcontainer"];
73-
7472
const react = (_options?: Options): PluginOption[] => {
7573
let hmrDisabled = false;
7674
const options = {
@@ -120,11 +118,6 @@ const react = (_options?: Options): PluginOption[] => {
120118
"[vite:react-swc] The MDX plugin should be placed before this plugin",
121119
);
122120
}
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-
}
128121
},
129122
transformIndexHtml: (_, config) => [
130123
{

0 commit comments

Comments
 (0)