Skip to content

Commit

Permalink
fix: unnecessary param
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeRomaa committed Jun 8, 2024
1 parent af88686 commit c1628f4
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/esbuild.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,7 @@ import type { BuildLogger } from "./logger";
import { includeCSS, resolve, writeMetafile, writePackageSources } from "./plugins";
import { type BuildResultWithMeta, ESBUILD_ERRORS, type Instrument, type MachArgs, type MachConfig } from "./types";

async function build(
args: MachArgs,
instrument: Instrument,
logger: BuildLogger,
module = false,
): Promise<BuildResultWithMeta> {
async function build(args: MachArgs, instrument: Instrument, module = false): Promise<BuildResultWithMeta> {
const bundlesDir = args.bundles ?? "./bundles";

const envVars = Object.fromEntries(
Expand Down Expand Up @@ -104,7 +99,7 @@ export async function buildInstrument(
}

const startTime = performance.now();
const { success, result } = await build(args, instrument, logger, module)
const { success, result } = await build(args, instrument, module)
.then((result: BuildResultWithMeta) => ({
success: true,
result,
Expand Down

0 comments on commit c1628f4

Please sign in to comment.