@@ -132,8 +132,56 @@ class HtmlWebpackPlugin {
132132 HTML_WEBPACK_PLUGIN : true ,
133133 require : require ,
134134 htmlWebpackPluginPublicPath : publicPath ,
135- URL : require ( 'url' ) . URL ,
136- __filename : templateWithoutLoaders
135+ __filename : templateWithoutLoaders ,
136+ __dirname : path . dirname ( templateWithoutLoaders ) ,
137+ AbortController : global . AbortController ,
138+ AbortSignal : global . AbortSignal ,
139+ Blob : global . Blob ,
140+ Buffer : global . Buffer ,
141+ ByteLengthQueuingStrategy : global . ByteLengthQueuingStrategy ,
142+ BroadcastChannel : global . BroadcastChannel ,
143+ CompressionStream : global . CompressionStream ,
144+ CountQueuingStrategy : global . CountQueuingStrategy ,
145+ Crypto : global . Crypto ,
146+ CryptoKey : global . CryptoKey ,
147+ CustomEvent : global . CustomEvent ,
148+ DecompressionStream : global . DecompressionStream ,
149+ Event : global . Event ,
150+ EventTarget : global . EventTarget ,
151+ File : global . File ,
152+ FormData : global . FormData ,
153+ Headers : global . Headers ,
154+ MessageChannel : global . MessageChannel ,
155+ MessageEvent : global . MessageEvent ,
156+ MessagePort : global . MessagePort ,
157+ PerformanceEntry : global . PerformanceEntry ,
158+ PerformanceMark : global . PerformanceMark ,
159+ PerformanceMeasure : global . PerformanceMeasure ,
160+ PerformanceObserver : global . PerformanceObserver ,
161+ PerformanceObserverEntryList : global . PerformanceObserverEntryList ,
162+ PerformanceResourceTiming : global . PerformanceResourceTiming ,
163+ ReadableByteStreamController : global . ReadableByteStreamController ,
164+ ReadableStream : global . ReadableStream ,
165+ ReadableStreamBYOBReader : global . ReadableStreamBYOBReader ,
166+ ReadableStreamBYOBRequest : global . ReadableStreamBYOBRequest ,
167+ ReadableStreamDefaultController : global . ReadableStreamDefaultController ,
168+ ReadableStreamDefaultReader : global . ReadableStreamDefaultReader ,
169+ Response : global . Response ,
170+ Request : global . Request ,
171+ SubtleCrypto : global . SubtleCrypto ,
172+ DOMException : global . DOMException ,
173+ TextDecoder : global . TextDecoder ,
174+ TextDecoderStream : global . TextDecoderStream ,
175+ TextEncoder : global . TextEncoder ,
176+ TextEncoderStream : global . TextEncoderStream ,
177+ TransformStream : global . TransformStream ,
178+ TransformStreamDefaultController : global . TransformStreamDefaultController ,
179+ URL : global . URL ,
180+ URLSearchParams : global . URLSearchParams ,
181+ WebAssembly : global . WebAssembly ,
182+ WritableStream : global . WritableStream ,
183+ WritableStreamDefaultController : global . WritableStreamDefaultController ,
184+ WritableStreamDefaultWriter : global . WritableStreamDefaultWriter
137185 } ) ;
138186 const vmScript = new vm . Script ( source , { filename : templateWithoutLoaders } ) ;
139187 // Evaluate code and cast to string
0 commit comments