Skip to content

Commit

Permalink
feat: add generic type for plugin api (#14238)
Browse files Browse the repository at this point in the history
  • Loading branch information
sxzz committed Sep 18, 2023
1 parent 74fa024 commit 830b26e
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 55 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
"playwright-chromium": "^1.36.2",
"prettier": "3.0.1",
"rimraf": "^5.0.1",
"rollup": "^3.28.0",
"rollup": "^3.29.0",
"simple-git-hooks": "^2.9.0",
"tslib": "^2.6.1",
"tsx": "^3.12.7",
Expand Down
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 @@
"dependencies": {
"esbuild": "^0.18.10",
"postcss": "^8.4.27",
"rollup": "^3.28.0"
"rollup": "^3.29.0"
},
"optionalDependencies": {
"fsevents": "~2.3.2"
Expand Down
2 changes: 1 addition & 1 deletion packages/vite/src/node/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ import type { PreviewServerHook } from './preview'
* If a plugin should be applied only for server or build, a function format
* config file can be used to conditional determine the plugins to use.
*/
export interface Plugin extends RollupPlugin {
export interface Plugin<A = any> extends RollupPlugin<A> {
/**
* Enforce plugin invocation tier similar to webpack loaders.
*
Expand Down
104 changes: 52 additions & 52 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 830b26e

Please sign in to comment.