Skip to content

Commit

Permalink
remove both react vite plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
asanehisa committed May 14, 2024
1 parent 15a7834 commit 6c26fc5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/pages/src/util/viteConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@ export const scopedViteConfigPath = (scope?: string) => {
};

export const removePluginFromViteConfig = (config: any) => {
if (config?.plugins) {
if (config?.plugins?.[0]) {
config.plugins = config.plugins?.[0]?.filter(
(obj: any) => obj.name !== "vite:react-refresh"
(obj: any) =>
obj.name !== "vite:react-refresh" || obj.name !== "vite:react-babel"
);
}
return config;
Expand Down

0 comments on commit 6c26fc5

Please sign in to comment.