Skip to content

Commit

Permalink
feat: remove more stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
florian-lefebvre committed Sep 27, 2024
1 parent 455afa1 commit 07b511b
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 17 deletions.
1 change: 0 additions & 1 deletion packages/astro/src/core/build/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,6 @@ class AstroBuilder {
.map((pageData) => pageData.route)
.concat(hasServerIslands ? getServerIslandRouteData(this.settings.config) : []),
logging: this.logger,
cacheManifest: internals.cacheManifestUsed,
});

if (this.logger.level && levels[this.logger.level()] <= levels['info']) {
Expand Down
5 changes: 0 additions & 5 deletions packages/astro/src/core/build/internal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,6 @@ export interface BuildInternals {
*/
discoveredScripts: Set<string>;

cachedClientEntries: string[];
cacheManifestUsed: boolean;

/**
* Map of propagated module ids (usually something like `/Users/...blog.mdx?astroPropagatedAssets`)
* to a set of stylesheets that it uses.
Expand Down Expand Up @@ -104,7 +101,6 @@ export interface BuildInternals {
*/
export function createBuildInternals(): BuildInternals {
return {
cachedClientEntries: [],
cssModuleToChunkIdMap: new Map(),
inlinedScripts: new Map(),
entrySpecifierToBundleMap: new Map<string, string>(),
Expand All @@ -121,7 +117,6 @@ export function createBuildInternals(): BuildInternals {
staticFiles: new Set(),
componentMetadata: new Map(),
entryPoints: new Map(),
cacheManifestUsed: false,
prerenderOnlyChunks: [],
};
}
Expand Down
1 change: 0 additions & 1 deletion packages/astro/src/core/build/static-build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ export async function viteBuild(opts: StaticBuildOptions) {
.filter((a) => typeof a === 'string') as string[];

const clientInput = new Set([
...internals.cachedClientEntries,
...internals.discoveredHydratedComponents.keys(),
...internals.discoveredClientOnlyComponents.keys(),
...rendererClientEntrypoints,
Expand Down
10 changes: 1 addition & 9 deletions packages/astro/src/integrations/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -579,16 +579,9 @@ type RunHookBuildDone = {
pages: string[];
routes: RouteData[];
logging: Logger;
cacheManifest: boolean;
};

export async function runHookBuildDone({
settings,
pages,
routes,
logging,
cacheManifest,
}: RunHookBuildDone) {
export async function runHookBuildDone({ settings, pages, routes, logging }: RunHookBuildDone) {
const dir =
settings.buildOutput === 'server' ? settings.config.build.client : settings.config.outDir;
await fsMod.promises.mkdir(dir, { recursive: true });
Expand All @@ -605,7 +598,6 @@ export async function runHookBuildDone({
dir,
routes: integrationRoutes,
logger,
cacheManifest,
}),
logger: logging,
});
Expand Down
1 change: 0 additions & 1 deletion packages/astro/src/types/public/integrations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,6 @@ export interface BaseIntegrationHooks {
dir: URL;
routes: IntegrationRouteData[];
logger: AstroIntegrationLogger;
cacheManifest: boolean;
}) => void | Promise<void>;
'astro:route:setup': (options: {
route: RouteOptions;
Expand Down

0 comments on commit 07b511b

Please sign in to comment.