Skip to content

Commit

Permalink
move type extension to src/node/index.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
aleclarson committed Jan 25, 2022
1 parent 9cd349d commit 84217c6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 12 deletions.
7 changes: 7 additions & 0 deletions packages/vite/src/node/index.ts
Expand Up @@ -91,3 +91,10 @@ export type { Terser } from 'types/terser'
export type { RollupCommonJSOptions } from 'types/commonjs'
export type { RollupDynamicImportVarsOptions } from 'types/dynamicImportVars'
export type { Matcher, AnymatchPattern, AnymatchFn } from 'types/anymatch'

declare module 'rollup' {
export interface RenderedChunk {
importedAssets: Set<string>
importedCss: Set<string>
}
}
6 changes: 0 additions & 6 deletions packages/vite/src/node/plugins/asset.ts
Expand Up @@ -357,9 +357,3 @@ export async function urlToBuiltUrl(
true
)
}

declare module 'rollup' {
export interface RenderedChunk {
importedAssets: Set<string>
}
}
6 changes: 0 additions & 6 deletions packages/vite/src/node/plugins/css.ts
Expand Up @@ -1294,9 +1294,3 @@ const preProcessors = Object.freeze({
function isPreProcessor(lang: any): lang is PreprocessLang {
return lang && lang in preProcessors
}

declare module 'rollup' {
export interface RenderedChunk {
importedCss: Set<string>
}
}

0 comments on commit 84217c6

Please sign in to comment.