File tree Expand file tree Collapse file tree 3 files changed +12
-4
lines changed
packages/cloudflare/src/cli/build Expand file tree Collapse file tree 3 files changed +12
-4
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " @opennextjs/cloudflare " : patch
3+ ---
4+
5+ fix pages api routes
6+
7+ fixed pages api routes by inlining a dynamic require in the ` NodeModuleLoader ` class
Original file line number Diff line number Diff line change @@ -11,12 +11,12 @@ import { patchWebpackRuntime } from "./patches/ast/webpack-runtime.js";
1111import * as patches from "./patches/index.js" ;
1212import { inlineBuildId } from "./patches/plugins/build-id.js" ;
1313import { ContentUpdater } from "./patches/plugins/content-updater.js" ;
14+ import { inlineDynamicRequires } from "./patches/plugins/dynamic-requires.js" ;
1415import { inlineEvalManifest } from "./patches/plugins/eval-manifest.js" ;
1516import { patchFetchCacheSetMissingWaitUntil } from "./patches/plugins/fetch-cache-wait-until.js" ;
1617import { inlineFindDir } from "./patches/plugins/find-dir.js" ;
1718import { patchInstrumentation } from "./patches/plugins/instrumentation.js" ;
1819import { inlineLoadManifest } from "./patches/plugins/load-manifest.js" ;
19- import { inlineDynamicRequires } from "./patches/plugins/dynamic-requires.js" ;
2020import { handleOptionalDependencies } from "./patches/plugins/optional-deps.js" ;
2121import { patchDepdDeprecations } from "./patches/plugins/patch-depd-deprecations.js" ;
2222import { fixRequire } from "./patches/plugins/require.js" ;
Original file line number Diff line number Diff line change 11import { readFile } from "node:fs/promises" ;
2- import { join , posix , sep } from "node:path" ;
2+ import { join , posix , sep } from "node:path" ;
33
44import { type BuildOptions , getPackagePath } from "@opennextjs/aws/build/helper.js" ;
55import { getCrossPlatformPathRegex } from "@opennextjs/aws/utils/regex.js" ;
@@ -83,11 +83,12 @@ rule:
8383 - has:
8484 field: parameters
8585 has:
86- kind: identifier
86+ kind: required_parameter
8787 pattern: $ID
8888 inside:
89- stopBy:
89+ stopBy:
9090 kind: class_declaration
91+ kind: class_declaration
9192 has:
9293 field: name
9394 regex: ^NodeModuleLoader$
You can’t perform that action at this time.
0 commit comments