feat(vite): get rid of unnecessary polyfills (#3242)

This commit is contained in:
Marvin Hagemeister
2025-08-22 11:23:57 +02:00
committed by GitHub
parent 27c2910b1d
commit 873c54bd5f
3 changed files with 121 additions and 0 deletions
@@ -4,6 +4,7 @@ import { cjsPlugin } from "./patches/commonjs.ts";
import { jsxComments } from "./patches/jsx_comment.ts";
import babelReact from "@babel/preset-react";
import { inlineEnvVarsPlugin } from "./patches/inline_env_vars.ts";
import { removePolyfills } from "./patches/remove_polyfills.ts";
export function patches(): Plugin {
let isDev = false;
@@ -33,6 +34,7 @@ export function patches(): Plugin {
babelrc: false,
plugins: [
cjsPlugin,
removePolyfills,
jsxComments,
inlineEnvVarsPlugin(
isDev ? "development" : "production",