@@ -12,7 +12,6 @@ import { CliApiClient } from "../apiClient.js";
1212import { DevCommandOptions } from "../commands/dev.js" ;
1313import { eventBus } from "../utilities/eventBus.js" ;
1414import { logger } from "../utilities/logger.js" ;
15- import { sanitizeEnvVars } from "../utilities/sanitizeEnvVars.js" ;
1615import { resolveSourceFiles } from "../utilities/sourceFiles.js" ;
1716import { BackgroundWorker } from "./backgroundWorker.js" ;
1817import { WorkerRuntime } from "./workerRuntime.js" ;
@@ -25,6 +24,7 @@ import {
2524} from "@trigger.dev/core/v3/workers" ;
2625import pLimit from "p-limit" ;
2726import { resolveLocalEnvVars } from "../utilities/localEnvVars.js" ;
27+ import type { Metafile } from "esbuild" ;
2828
2929export type WorkerRuntimeOptions = {
3030 name : string | undefined ;
@@ -113,7 +113,11 @@ class DevSupervisor implements WorkerRuntime {
113113 }
114114 }
115115
116- async initializeWorker ( manifest : BuildManifest , stop : ( ) => void ) : Promise < void > {
116+ async initializeWorker (
117+ manifest : BuildManifest ,
118+ metafile : Metafile ,
119+ stop : ( ) => void
120+ ) : Promise < void > {
117121 if ( this . lastManifest && this . lastManifest . contentHash === manifest . contentHash ) {
118122 logger . debug ( "worker skipped" , { lastManifestContentHash : this . lastManifest ?. contentHash } ) ;
119123 eventBus . emit ( "workerSkipped" ) ;
@@ -123,7 +127,7 @@ class DevSupervisor implements WorkerRuntime {
123127
124128 const env = await this . #getEnvVars( ) ;
125129
126- const backgroundWorker = new BackgroundWorker ( manifest , {
130+ const backgroundWorker = new BackgroundWorker ( manifest , metafile , {
127131 env,
128132 cwd : this . options . config . workingDir ,
129133 stop,
0 commit comments