File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import type {
55 AddonHookFunction ,
66 AsyncPluginHooks ,
77 EmitFile ,
8+ EmittedFile ,
89 FirstPluginHooks ,
910 NormalizedInputOptions ,
1011 NormalizedOutputOptions ,
@@ -99,11 +100,16 @@ export class PluginDriver {
99100 options ,
100101 basePluginDriver && basePluginDriver . fileEmitter
101102 ) ;
102- this . emitFile = this . fileEmitter . emitFile . bind ( this . fileEmitter ) ;
103- this . getFileName = this . fileEmitter . getFileName . bind ( this . fileEmitter ) ;
104- this . finaliseAssets = this . fileEmitter . assertAssetsFinalized . bind ( this . fileEmitter ) ;
105- this . setOutputBundle = this . fileEmitter . setOutputBundle . bind ( this . fileEmitter ) ;
103+ this . emitFile = ( emittedFile : EmittedFile ) => this . fileEmitter . emitFile ( emittedFile ) ;
104+ this . getFileName = ( fileReferenceId : string ) => this . fileEmitter . getFileName ( fileReferenceId ) ;
105+ this . finaliseAssets = ( ) => this . fileEmitter . assertAssetsFinalized ( ) ;
106+ this . setOutputBundle = (
107+ outputBundle : OutputBundleWithPlaceholders ,
108+ outputOptions : NormalizedOutputOptions ,
109+ facadeChunkByModule : Map < Module , Chunk >
110+ ) => this . fileEmitter . setOutputBundle ( outputBundle , outputOptions , facadeChunkByModule ) ;
106111 this . plugins = userPlugins . concat ( basePluginDriver ? basePluginDriver . plugins : [ ] ) ;
112+
107113 const existingPluginNames = new Set < string > ( ) ;
108114
109115 this . pluginContexts = new Map (
You can’t perform that action at this time.
0 commit comments