Skip to content

Commit

Permalink
chore: update for PluginContext type change
Browse files Browse the repository at this point in the history
  • Loading branch information
sapphi-red committed Dec 19, 2024
1 parent 3f8b01f commit a248bb1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/vite/src/node/server/pluginContainer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -548,6 +548,11 @@ class PluginContext implements Omit<RollupPluginContext, 'cache'> {
meta: RollupPluginContext['meta']
environment: Environment

get pluginName() {
// TODO(sapphi-red): remove `!` later
return this._plugin.name!
}

constructor(
public _plugin: Plugin,
public _container: EnvironmentPluginContainer,
Expand Down

0 comments on commit a248bb1

Please sign in to comment.