From e92e661990f9aa1c2be04867e6aeb47deed63418 Mon Sep 17 00:00:00 2001 From: Matthew Phillips Date: Thu, 24 Mar 2022 15:52:27 -0400 Subject: [PATCH] Fix ts errors --- packages/astro/src/core/build/generate.ts | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/packages/astro/src/core/build/generate.ts b/packages/astro/src/core/build/generate.ts index 9997af63e171..cbd5b3c2b713 100644 --- a/packages/astro/src/core/build/generate.ts +++ b/packages/astro/src/core/build/generate.ts @@ -1,26 +1,19 @@ import type { OutputAsset, OutputChunk, RollupOutput } from 'rollup'; -import type { PageBuildData } from './types'; -import type { AstroConfig, AstroRenderer, ComponentInstance, EndpointHandler, SSRLoadedRenderer } from '../../@types/astro'; +import type { AstroConfig, ComponentInstance, EndpointHandler, SSRLoadedRenderer } from '../../@types/astro'; import type { PageBuildData, StaticBuildOptions, SingleFileBuiltModule } from './types'; import type { BuildInternals } from '../../core/build/internal.js'; import type { RenderOptions } from '../../core/render/core'; import fs from 'fs'; -import { bgMagenta, black, cyan, dim, magenta } from 'kleur/colors'; import npath from 'path'; -import type { OutputAsset, OutputChunk, RollupOutput } from 'rollup'; import { fileURLToPath } from 'url'; -import type { AstroConfig, AstroRenderer, ComponentInstance, EndpointHandler, SSRLoadedRenderer } from '../../@types/astro'; -import type { BuildInternals } from '../../core/build/internal.js'; import { debug, error, info } from '../../core/logger.js'; import { prependForwardSlash } from '../../core/path.js'; -import type { RenderOptions } from '../../core/render/core'; -import { resolveDependency } from '../../core/util.js'; import { BEFORE_HYDRATION_SCRIPT_ID } from '../../vite-plugin-scripts/index.js'; import { call as callEndpoint } from '../endpoint/index.js'; import { render } from '../render/core.js'; import { createLinkStylesheetElementSet, createModuleScriptElementWithSrcSet } from '../render/ssr-element.js'; -import { getOutFile, getOutRoot, getOutFolder, getOutFile, getServerRoot } from './common.js'; +import { getOutFile, getOutRoot, getOutFolder, getServerRoot } from './common.js'; import { getPageDataByComponent, eachPageData } from './internal.js'; import { bgMagenta, black, cyan, dim, magenta } from 'kleur/colors'; import { getTimeStat } from './util.js';