Skip to content

Commit 3213efe

Browse files
authored
refactor(wrangler): refine the type of buildOptions (#7876)
1 parent 7d0be5f commit 3213efe

File tree

1 file changed

+2
-2
lines changed
  • packages/wrangler/src/deployment-bundle

1 file changed

+2
-2
lines changed

packages/wrangler/src/deployment-bundle/bundle.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ export async function bundleWorker(
393393

394394
const unenvResolvePaths = getUnenvResolvePathsFromEnv()?.split(",");
395395

396-
const buildOptions: esbuild.BuildOptions & { metafile: true } = {
396+
const buildOptions = {
397397
// Don't use entryFile here as the file may have been changed when applying the middleware
398398
entryPoints: [entry.file],
399399
bundle,
@@ -460,7 +460,7 @@ export async function bundleWorker(
460460
// logging, we disable esbuild's default logging, and log build failures
461461
// ourselves.
462462
logLevel: "silent",
463-
};
463+
} satisfies esbuild.BuildOptions;
464464

465465
let result: esbuild.BuildResult<typeof buildOptions>;
466466
let stop: BundleResult["stop"];

0 commit comments

Comments
 (0)