Skip to content

Commit

Permalink
refactor(wrangler): refine the type of buildOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
vicb committed Jan 23, 2025
1 parent a7163b3 commit ba8d887
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/wrangler/src/deployment-bundle/bundle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ export async function bundleWorker(

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

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

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

0 comments on commit ba8d887

Please sign in to comment.