Skip to content

Commit

Permalink
Revert "chore(wrangler): use the unenv preset from `@cloudflare/unenv…
Browse files Browse the repository at this point in the history
…-preset`…" (#7797)

This reverts commit 902e3af.
  • Loading branch information
CarmenPopoviciu authored Jan 16, 2025
1 parent f8c11d7 commit 7c1c90e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 24 deletions.
1 change: 0 additions & 1 deletion packages/wrangler/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@
},
"dependencies": {
"@cloudflare/kv-asset-handler": "workspace:*",
"@cloudflare/unenv-preset": "1.x",
"@esbuild-plugins/node-globals-polyfill": "0.2.3",
"@esbuild-plugins/node-modules-polyfill": "0.2.2",
"blake3-wasm": "2.1.5",
Expand Down
6 changes: 3 additions & 3 deletions packages/wrangler/scripts/deps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ export const EXTERNAL_DEPENDENCIES = [
// @cloudflare/workers-types is an optional peer dependency of wrangler, so users can
// get the types by installing the package (to what version they prefer) themselves
"@cloudflare/workers-types",
// `@cloudflare/unenv-preset` and `unenv` must be external because they contain code
// which needs to be resolved and read when we are bundling the worker application
"@cloudflare/unenv-preset",

// unenv must be external because it contains unenv/runtime code which needs to be resolved
// and read when we are bundling the worker application
"unenv",

// path-to-regexp must be external because it contains runtime code which needs to be resolved
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { builtinModules } from "node:module";
import nodePath from "node:path";
import { cloudflare } from "@cloudflare/unenv-preset";
import dedent from "ts-dedent";
import { defineEnv } from "unenv";
import { cloudflare, defineEnv } from "unenv";
import { getBasePath } from "../../paths";
import type { Plugin, PluginBuild } from "esbuild";

Expand Down
18 changes: 0 additions & 18 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 7c1c90e

Please sign in to comment.