We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 867defe commit 5e92af8Copy full SHA for 5e92af8
packages/open-next/src/plugins/resolve.ts
@@ -1,4 +1,4 @@
1
-import { readFileSync } from "node:fs";
+import { readFile } from "node:fs/promises";
2
3
import chalk from "chalk";
4
import type { Plugin } from "esbuild";
@@ -88,7 +88,7 @@ export function openNextResolvePlugin({
88
build.onLoad(
89
{ filter: getCrossPlatformPathRegex("core/resolve.js") },
90
async (args) => {
91
- let contents = readFileSync(args.path, "utf-8");
+ let contents = await readFile(args.path, "utf-8");
92
const overridesEntries = Object.entries(overrides ?? {});
93
for (let [overrideName, overrideValue] of overridesEntries) {
94
if (!overrideValue) {
0 commit comments