create-cloudflare 0.0.0-a4a89ae7 → 0.0.0-a6a4e8a4

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.
@@ -13,7 +13,7 @@ import { worker } from "./paths.mjs";
13
13
  const serverPolyfillsFile = join(worker, "polyfills.server.mjs");
14
14
  const serverPolyfillsData = fs
15
15
  .readFileSync(serverPolyfillsFile, "utf8")
16
- .split(EOL);
16
+ .split(/\r?\n/);
17
17
 
18
18
  for (let index = 0; index < 2; index++) {
19
19
  if (serverPolyfillsData[index].includes("createRequire")) {
@@ -22,11 +22,6 @@ for (let index = 0; index < 2; index++) {
22
22
  }
23
23
 
24
24
  // Add needed polyfills
25
- serverPolyfillsData.unshift(
26
- `globalThis['process'] = {};`,
27
- `globalThis['global'] = globalThis;`,
28
- // Needed as performance.mark is not a function in worker.
29
- `performance.mark = () => {};`
30
- );
25
+ serverPolyfillsData.unshift(`globalThis['process'] = {};`);
31
26
 
32
27
  fs.writeFileSync(serverPolyfillsFile, serverPolyfillsData.join(EOL));