fix(vite): remove Deno global check (#3401)
Ultimately, it causes more problems than it solves.
This commit is contained in:
@@ -6,7 +6,6 @@ import babelReact from "@babel/preset-react";
|
||||
import { inlineEnvVarsPlugin } from "./patches/inline_env_vars.ts";
|
||||
import { removePolyfills } from "./patches/remove_polyfills.ts";
|
||||
import { JS_REG, JSX_REG } from "../utils.ts";
|
||||
import { denoGlobal } from "./patches/deno_global.ts";
|
||||
import { codeEvalPlugin } from "./patches/code_eval.ts";
|
||||
|
||||
export function patches(): Plugin {
|
||||
@@ -44,10 +43,6 @@ export function patches(): Plugin {
|
||||
inlineEnvVarsPlugin(env, Deno.env.toObject()),
|
||||
];
|
||||
|
||||
if (!options?.ssr) {
|
||||
plugins.push(denoGlobal);
|
||||
}
|
||||
|
||||
const res = babel.transformSync(code, {
|
||||
filename: id,
|
||||
babelrc: false,
|
||||
|
||||
Reference in New Issue
Block a user