Skip to content

Commit f7f97de

Browse files
authored
cleanup: remove dead code (#10011)
1 parent 7e5585d commit f7f97de

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

packages/unenv-preset/tests/index.test.ts

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,11 @@
11
import path from "node:path";
22
import { platform } from "node:process";
3-
import { fileURLToPath } from "node:url";
43
import { fetch } from "undici";
54
import { afterAll, beforeAll, describe, expect, test, vi } from "vitest";
65
import workerdPath from "workerd";
76
import { runWranglerDev } from "../../../fixtures/shared/src/run-wrangler-long-lived";
87
import { TESTS } from "./worker/index";
98

10-
// Root of the current package
11-
const pkgDir = path.resolve(fileURLToPath(import.meta.url), "../..");
12-
// Base path for resolving `@cloudflare/unenv-preset` files
13-
const localPresetResolveBaseDir = path.join(pkgDir, "package.json");
14-
// Base path for resolving `unjs/unenv` files
15-
const localUnenvResolveBaseDir = path.join(
16-
pkgDir,
17-
"node_modules/unenv/package.json"
18-
);
19-
209
describe(`@cloudflare/unenv-preset ${platform} ${workerdPath}`, () => {
2110
let wrangler: Awaited<ReturnType<typeof runWranglerDev>> | undefined;
2211

packages/wrangler/src/deployment-bundle/esbuild-plugins/nodejs-plugins.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ export function getNodeJSCompatPlugins({
1111
mode,
1212
}: {
1313
mode: NodeJSCompatMode;
14-
unenvResolvePaths?: string[];
1514
}): Plugin[] {
1615
switch (mode) {
1716
case "als":

0 commit comments

Comments
 (0)