fix(vite): remove Deno global check (#3401)
Ultimately, it causes more problems than it solves.
This commit is contained in:
@@ -408,30 +408,6 @@ Deno.test({
|
||||
sanitizeResources: false,
|
||||
});
|
||||
|
||||
Deno.test({
|
||||
name: "vite build - throw when using Deno.* global inside an island",
|
||||
fn: async () => {
|
||||
const fixture = path.join(FIXTURE_DIR, "deno_global_island");
|
||||
|
||||
await expect(buildVite(fixture)).rejects.toThrow(
|
||||
"The Deno.* global cannot be used in the browser",
|
||||
);
|
||||
},
|
||||
sanitizeOps: false,
|
||||
sanitizeResources: false,
|
||||
});
|
||||
|
||||
Deno.test({
|
||||
name: "vite build - don't throw when using Deno.* global in ssr",
|
||||
fn: async () => {
|
||||
const fixture = path.join(FIXTURE_DIR, "deno_global_ssr");
|
||||
|
||||
await buildVite(fixture);
|
||||
},
|
||||
sanitizeOps: false,
|
||||
sanitizeResources: false,
|
||||
});
|
||||
|
||||
Deno.test({
|
||||
name: "vite build - static index.html",
|
||||
fn: async () => {
|
||||
|
||||
Reference in New Issue
Block a user