Skip to content

Commit 70f44ae

Browse files
committed
chore: update for PluginContext type change
1 parent c033639 commit 70f44ae

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
@@ -562,6 +562,11 @@ class PluginContext implements Omit<RollupPluginContext, 'cache'> {
562562
meta: RollupPluginContext['meta']
563563
environment: Environment
564564

565+
get pluginName() {
566+
// TODO(sapphi-red): remove `!` later
567+
return this._plugin.name!
568+
}
569+
565570
constructor(
566571
public _plugin: Plugin,
567572
public _container: EnvironmentPluginContainer,

0 commit comments

Comments
 (0)