Skip to content

Commit a248bb1

Browse files
committed
chore: update for PluginContext type change
1 parent 3f8b01f commit a248bb1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/vite/src/node/server/pluginContainer.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -548,6 +548,11 @@ class PluginContext implements Omit<RollupPluginContext, 'cache'> {
548548
meta: RollupPluginContext['meta']
549549
environment: Environment
550550

551+
get pluginName() {
552+
// TODO(sapphi-red): remove `!` later
553+
return this._plugin.name!
554+
}
555+
551556
constructor(
552557
public _plugin: Plugin,
553558
public _container: EnvironmentPluginContainer,

0 commit comments

Comments
 (0)