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
+3
View File
@@ -382,6 +382,7 @@ export async function getServerContext(opts: InternalFreshOptions) {
jsxConfig,
opts.dev,
opts.router ?? DEFAULT_ROUTER_OPTIONS,
opts.build.target,
snapshot,
);
}
@@ -416,6 +417,7 @@ export class ServerContext {
jsxConfig: JSXConfig,
dev: boolean,
routerOptions: RouterOptions,
target: string | string[],
snapshot: BuildSnapshot | null = null,
) {
this.#routes = routes;
@@ -435,6 +437,7 @@ export class ServerContext {
configPath,
dev: this.#dev,
jsxConfig,
target,
});
this.#routerOptions = routerOptions;
}