feat: add build.target option (#1798)

This commit is contained in:
Marvin Hagemeister
2023-09-20 11:05:46 +02:00
committed by GitHub
parent 3fd8fe89d3
commit 0c37b5f9b9
11 changed files with 106 additions and 1 deletions
+2 -1
View File
@@ -20,6 +20,7 @@ export interface EsbuildBuilderOptions {
configPath: string;
/** The JSX configuration. */
jsxConfig: JSXConfig;
target: string | string[];
}
export interface JSXConfig {
@@ -55,7 +56,7 @@ export class EsbuildBuilder implements Builder {
entryPoints: opts.entrypoints,
platform: "browser",
target: ["chrome99", "firefox99", "safari15"],
target: this.#options.target,
format: "esm",
bundle: true,