fix(cli): add inject and define options

This commit is contained in:
Ruben Fiszel
2024-08-15 19:04:11 +02:00
parent 352152c491
commit daaca4e161
2 changed files with 4 additions and 0 deletions
+2
View File
@@ -34,6 +34,8 @@ export interface Codebase {
}[];
customBundler?: string;
external?: string[];
define?: { [key: string]: string };
inject?: string[];
}
export async function readConfigFile(): Promise<SyncOptions> {
+2
View File
@@ -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",