Skip to content

Commit

Permalink
revert getCrossPlatformPathRegex usage
Browse files Browse the repository at this point in the history
  • Loading branch information
dario-piotrowicz committed Feb 11, 2025
1 parent 669d67c commit 5e97964
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import { getCrossPlatformPathRegex } from "@opennextjs/aws/utils/regex.js";

import { patchCode } from "../ast/util.js";
import type { ContentUpdater } from "./content-updater.js";

Expand All @@ -18,10 +16,7 @@ export function patchFetchCacheSetMissingWaitUntil(updater: ContentUpdater) {
return updater.updateContent(
"patch-fetch-cache-set-missing-wait-until",
{
filter: getCrossPlatformPathRegex(
String.raw`(server/chunks/.*\.js|.*\.runtime\..*\.js|patch-fetch\.js)$`,
{ escape: false }
),
filter: /(server\/chunks\/.*\.js|.*\.runtime\..*\.js|patch-fetch\.js)$/,
contentFilter: /arrayBuffer\(\)\s*\.then/,
},
({ contents }) => patchCode(contents, rule)
Expand Down

0 comments on commit 5e97964

Please sign in to comment.