refactor: don't inline script if there are no islands (#101)
This commit is contained in:
@@ -8,12 +8,7 @@ import {
|
||||
} from "./deps.ts";
|
||||
import { Manifest } from "./mod.ts";
|
||||
import { Bundler } from "./bundle.ts";
|
||||
import {
|
||||
ALIVE_URL,
|
||||
bundleAssetUrl,
|
||||
INTERNAL_PREFIX,
|
||||
REFRESH_JS_URL,
|
||||
} from "./constants.ts";
|
||||
import { ALIVE_URL, INTERNAL_PREFIX, REFRESH_JS_URL } from "./constants.ts";
|
||||
import { JS_PREFIX } from "./constants.ts";
|
||||
import { BUILD_ID } from "./constants.ts";
|
||||
import {
|
||||
@@ -299,7 +294,7 @@ export class ServerContext {
|
||||
page: Page<Data> | UnknownPage | ErrorPage,
|
||||
status: number,
|
||||
) => {
|
||||
const imports: string[] = [bundleAssetUrl("/main.js")];
|
||||
const imports: string[] = [];
|
||||
if (this.#dev) {
|
||||
imports.push(REFRESH_JS_URL);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user