Skip to content

Commit

Permalink
feat: export manifest types (#2901)
Browse files Browse the repository at this point in the history
  • Loading branch information
codepunkt committed Apr 8, 2021
1 parent 0dc6e37 commit ffcb7ce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions packages/vite/src/node/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ export type {
export type { CSSOptions, CSSModulesOptions } from './plugins/css'
export type { JsonOptions } from './plugins/json'
export type { ESBuildOptions, ESBuildTransformResult } from './plugins/esbuild'
export type { Manifest, ManifestChunk } from './plugins/manifest'
export type {
PackageData,
ResolveOptions,
Expand Down
4 changes: 2 additions & 2 deletions packages/vite/src/node/plugins/manifest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import { chunkToEmittedCssFileMap } from './css'
import { chunkToEmittedAssetsMap } from './asset'
import { normalizePath } from '../utils'

type Manifest = Record<string, ManifestChunk>
export type Manifest = Record<string, ManifestChunk>

interface ManifestChunk {
export interface ManifestChunk {
src?: string
file: string
css?: string[]
Expand Down

0 comments on commit ffcb7ce

Please sign in to comment.