Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update dependency @rollup/plugin-alias to v4 #10394

Merged
merged 2 commits into from
Oct 10, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
"@babel/parser": "^7.19.3",
"@babel/types": "^7.19.3",
"@jridgewell/trace-mapping": "^0.3.16",
"@rollup/plugin-alias": "^3.1.9",
"@rollup/plugin-alias": "^4.0.0",
"@rollup/plugin-commonjs": "^22.0.2",
"@rollup/plugin-dynamic-import-vars": "^1.4.4",
"@rollup/plugin-json": "^4.1.0",
Expand Down
1 change: 1 addition & 0 deletions packages/vite/src/node/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ export type {
// dep types
export type {
AliasOptions,
MapToFunction,
ResolverFunction,
ResolverObject,
Alias
Expand Down
4 changes: 3 additions & 1 deletion packages/vite/src/types/alias.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ export interface Alias {
customResolver?: ResolverFunction | ResolverObject | null
}

export type ResolverFunction = PluginHooks['resolveId']
export type MapToFunction<T> = T extends Function ? T : never

export type ResolverFunction = MapToFunction<PluginHooks['resolveId']>

export interface ResolverObject {
buildStart?: PluginHooks['buildStart']
Expand Down
17 changes: 15 additions & 2 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.