Skip to content

Commit

Permalink
chore(deps): update dependency @rollup/plugin-alias to v4 (#10394)
Browse files Browse the repository at this point in the history
Co-authored-by: sapphi-red <green@sapphi.red>
  • Loading branch information
renovate[bot] and sapphi-red authored Oct 10, 2022
1 parent f519423 commit e2b4c8f
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 4 deletions.
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.

0 comments on commit e2b4c8f

Please sign in to comment.