@cloudflare/worker-bundler 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,10 @@
1
1
  import { t as fetchPackageFiles } from "./installer-CwkPhXvX.js";
2
- import { createRequire } from "node:module";
3
2
  import { createVirtualTypeScriptEnvironment } from "@typescript/vfs";
4
3
  //#region \0rolldown/runtime.js
5
- var __require = /* @__PURE__ */ createRequire(import.meta.url);
4
+ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, { get: (a, b) => (typeof require !== "undefined" ? require : a)[b] }) : x)(function(x) {
5
+ if (typeof require !== "undefined") return require.apply(this, arguments);
6
+ throw Error("Calling `require` for \"" + x + "\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.");
7
+ });
6
8
  //#endregion
7
9
  //#region src/vendor/typescript.browser.js
8
10
  var z5e = ((ob) => typeof __require < "u" ? __require : typeof Proxy < "u" ? new Proxy(ob, { get: (VT, iQ) => (typeof __require < "u" ? __require : VT)[iQ] }) : ob)(function(ob) {