Skip to content

Commit fcc7405

Browse files
authored
chore: rename variable
1 parent 9276ba1 commit fcc7405

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/build/functions/edge.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -85,13 +85,13 @@ const writeHandlerFile = async (ctx: PluginContext, { matchers, name }: NextDefi
8585
JSON.stringify(minimalNextConfig),
8686
)
8787

88-
let htmlRewriterWasm = await readFile(
88+
const htmlRewriterWasm = await readFile(
8989
join(
9090
ctx.pluginDir,
9191
'edge-runtime/vendor/deno.land/x/[email protected]/pkg/htmlrewriter_bg.wasm',
9292
),
9393
)
94-
htmlRewriterWasm = new Uint8Array(
94+
const rewriterWasm = new Uint8Array(
9595
htmlRewriterWasm.buffer,
9696
htmlRewriterWasm.byteOffset,
9797
htmlRewriterWasm.length,
@@ -107,7 +107,7 @@ const writeHandlerFile = async (ctx: PluginContext, { matchers, name }: NextDefi
107107
import handler from './server/${name}.js';
108108
109109
await htmlRewriterInit({ module_or_path: Uint8Array.from(${JSON.stringify([
110-
...htmlRewriterWasm,
110+
...rewriterWasm,
111111
])}) });
112112
113113
export default (req, context) => handleMiddleware(req, context, handler);

0 commit comments

Comments
 (0)