diff --git a/cli/conf.ts b/cli/conf.ts index f18247ac15..bac5b7ca9d 100644 --- a/cli/conf.ts +++ b/cli/conf.ts @@ -34,6 +34,8 @@ export interface Codebase { }[]; customBundler?: string; external?: string[]; + define?: { [key: string]: string }; + inject?: string[]; } export async function readConfigFile(): Promise { diff --git a/cli/script.ts b/cli/script.ts index 03f6bfb1de..408f131b60 100644 --- a/cli/script.ts +++ b/cli/script.ts @@ -173,6 +173,8 @@ export async function handleFile( bundle: true, write: false, external: codebase.external, + inject: codebase.inject, + define: codebase.define, platform: "node", packages: "bundle", target: "node20.15.1",