-
-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: move vite module types to core to avoid circle reference
- Loading branch information
1 parent
a7d5c6c
commit 7c18de5
Showing
9 changed files
with
44 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
export * from './client' | ||
export * from './server' | ||
export * from './module-types' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
// assets | ||
export type AssetType = 'image' | 'font' | 'video' | 'audio' | 'text' | 'json' | 'other' | ||
export interface AssetInfo { | ||
path: string | ||
type: AssetType | ||
publicPath: string | ||
filePath: string | ||
size: number | ||
mtime: number | ||
} | ||
export interface ImageMeta { | ||
width: number | ||
height: number | ||
orientation?: number | ||
type?: string | ||
mimeType?: string | ||
} | ||
|
||
export interface AssetEntry { | ||
path: string | ||
content: string | ||
encoding?: BufferEncoding | ||
override?: boolean | ||
} | ||
|
||
export interface CodeSnippet { | ||
code: string | ||
lang: string | ||
name: string | ||
docs?: string | ||
} | ||
|
||
// graph | ||
export interface ModuleInfo { | ||
id: string | ||
plugins: { name: string, transform?: number, resolveId?: number }[] | ||
deps: string[] | ||
virtual: boolean | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.