|
1 |
| -import { Plugin, build } from "esbuild"; |
| 1 | +import { existsSync, readFileSync } from "node:fs"; |
2 | 2 | import { cp, readFile, writeFile } from "node:fs/promises";
|
3 | 3 | import { dirname, join } from "node:path";
|
4 |
| -import { existsSync, readFileSync } from "node:fs"; |
| 4 | +import { fileURLToPath } from "node:url"; |
| 5 | + |
| 6 | +import { build, Plugin } from "esbuild"; |
| 7 | + |
5 | 8 | import { Config } from "../config";
|
6 | 9 | import { copyPackageCliFiles } from "./patches/investigated/copy-package-cli-files";
|
7 |
| -import { copyPrerenderedRoutes } from "./utils"; |
8 |
| -import { fileURLToPath } from "node:url"; |
| 10 | +import { patchCache } from "./patches/investigated/patch-cache"; |
| 11 | +import { patchRequire } from "./patches/investigated/patch-require"; |
| 12 | +import { updateWebpackChunksFile } from "./patches/investigated/update-webpack-chunks-file"; |
9 | 13 | import { inlineEvalManifest } from "./patches/to-investigate/inline-eval-manifest";
|
10 | 14 | import { inlineMiddlewareManifestRequire } from "./patches/to-investigate/inline-middleware-manifest-require";
|
11 | 15 | import { inlineNextRequire } from "./patches/to-investigate/inline-next-require";
|
12 |
| -import { patchCache } from "./patches/investigated/patch-cache"; |
13 | 16 | import { patchExceptionBubbling } from "./patches/to-investigate/patch-exception-bubbling";
|
14 | 17 | import { patchFindDir } from "./patches/to-investigate/patch-find-dir";
|
15 | 18 | import { patchReadFile } from "./patches/to-investigate/patch-read-file";
|
16 |
| -import { patchRequire } from "./patches/investigated/patch-require"; |
17 | 19 | import { patchWranglerDeps } from "./patches/to-investigate/wrangler-deps";
|
18 |
| -import { updateWebpackChunksFile } from "./patches/investigated/update-webpack-chunks-file"; |
| 20 | +import { copyPrerenderedRoutes } from "./utils"; |
19 | 21 |
|
20 | 22 | /** The dist directory of the Cloudflare adapter package */
|
21 | 23 | const packageDistDir = join(dirname(fileURLToPath(import.meta.url)), "..");
|
|
0 commit comments