Skip to content
This repository was archived by the owner on Jul 24, 2025. It is now read-only.

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

Lines changed: 0 additions & 7 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy