@@ -92,7 +92,7 @@ const replacer = (value, allowEmpty) => {
9292 if ( value === null || value === undefined ) {
9393 if ( ! allowEmpty ) {
9494 throw new Error (
95- `Path variable ${ match } not implemented in this context: ${ input } ` ,
95+ `Path variable ${ match } not implemented in this context: ${ input } `
9696 ) ;
9797 }
9898
@@ -174,8 +174,8 @@ const replacePathVariables = (path, data, assetInfo) => {
174174 deprecated (
175175 replacer ( base ) ,
176176 '[filebase] is now [base]' ,
177- 'DEP_WEBPACK_TEMPLATE_PATH_PLUGIN_REPLACE_PATH_VARIABLES_FILENAME' ,
178- ) ,
177+ 'DEP_WEBPACK_TEMPLATE_PATH_PLUGIN_REPLACE_PATH_VARIABLES_FILENAME'
178+ )
179179 ) ;
180180 }
181181
@@ -193,7 +193,7 @@ const replacePathVariables = (path, data, assetInfo) => {
193193 replacer ( data . hash ) ,
194194 data . hashWithLength ,
195195 assetInfo ,
196- 'fullhash' ,
196+ 'fullhash'
197197 ) ;
198198
199199 replacements . set ( 'fullhash' , hashReplacer ) ;
@@ -204,8 +204,8 @@ const replacePathVariables = (path, data, assetInfo) => {
204204 deprecated (
205205 hashReplacer ,
206206 '[hash] is now [fullhash] (also consider using [chunkhash] or [contenthash], see documentation for details)' ,
207- 'DEP_WEBPACK_TEMPLATE_PATH_PLUGIN_REPLACE_PATH_VARIABLES_HASH' ,
208- ) ,
207+ 'DEP_WEBPACK_TEMPLATE_PATH_PLUGIN_REPLACE_PATH_VARIABLES_HASH'
208+ )
209209 ) ;
210210 }
211211
@@ -229,22 +229,22 @@ const replacePathVariables = (path, data, assetInfo) => {
229229 // eslint-disable-next-line no-undefined
230230 'hashWithLength' in chunk ? chunk . hashWithLength : undefined ,
231231 assetInfo ,
232- 'chunkhash' ,
232+ 'chunkhash'
233233 ) ;
234234 const contenthashReplacer = hashLength (
235235 replacer (
236236 data . contentHash ||
237237 ( contentHashType &&
238238 chunk . contentHash &&
239- chunk . contentHash [ contentHashType ] ) ,
239+ chunk . contentHash [ contentHashType ] )
240240 ) ,
241241 data . contentHashWithLength ||
242242 ( 'contentHashWithLength' in chunk && chunk . contentHashWithLength
243243 ? chunk . contentHashWithLength [ /** @type {string } */ ( contentHashType ) ]
244244 : // eslint-disable-next-line no-undefined
245245 undefined ) ,
246246 assetInfo ,
247- 'contenthash' ,
247+ 'contenthash'
248248 ) ;
249249
250250 replacements . set ( 'id' , idReplacer ) ;
@@ -272,44 +272,44 @@ const replacePathVariables = (path, data, assetInfo) => {
272272 module instanceof Module
273273 ? /** @type {ModuleId } */
274274 ( /** @type {ChunkGraph } */ ( chunkGraph ) . getModuleId ( module ) )
275- : module . id ,
276- ) ,
275+ : module . id
276+ )
277277 ) ;
278278 const moduleHashReplacer = hashLength (
279279 replacer ( ( ) =>
280280 module instanceof Module
281281 ? /** @type {ChunkGraph } */
282282 ( chunkGraph ) . getRenderedModuleHash ( module , data . runtime )
283- : module . hash ,
283+ : module . hash
284284 ) ,
285285 // eslint-disable-next-line no-undefined
286286 'hashWithLength' in module ? module . hashWithLength : undefined ,
287287 assetInfo ,
288- 'modulehash' ,
288+ 'modulehash'
289289 ) ;
290290 const contentHashReplacer = hashLength (
291291 replacer ( /** @type {string } */ ( data . contentHash ) ) ,
292292 // eslint-disable-next-line no-undefined
293293 undefined ,
294294 assetInfo ,
295- 'contenthash' ,
295+ 'contenthash'
296296 ) ;
297297
298298 replacements . set ( 'id' , idReplacer ) ;
299299 replacements . set ( 'modulehash' , moduleHashReplacer ) ;
300300 replacements . set ( 'contenthash' , contentHashReplacer ) ;
301301 replacements . set (
302302 'hash' ,
303- data . contentHash ? contentHashReplacer : moduleHashReplacer ,
303+ data . contentHash ? contentHashReplacer : moduleHashReplacer
304304 ) ;
305305 // Legacy
306306 replacements . set (
307307 'moduleid' ,
308308 deprecated (
309309 idReplacer ,
310310 '[moduleid] is now [id]' ,
311- 'DEP_WEBPACK_TEMPLATE_PATH_PLUGIN_REPLACE_PATH_VARIABLES_MODULE_ID' ,
312- ) ,
311+ 'DEP_WEBPACK_TEMPLATE_PATH_PLUGIN_REPLACE_PATH_VARIABLES_MODULE_ID'
312+ )
313313 ) ;
314314 }
315315
@@ -320,7 +320,7 @@ const replacePathVariables = (path, data, assetInfo) => {
320320 if ( typeof data . runtime === 'string' ) {
321321 replacements . set (
322322 'runtime' ,
323- replacer ( ( ) => prepareId ( /** @type {string } */ ( data . runtime ) ) ) ,
323+ replacer ( ( ) => prepareId ( /** @type {string } */ ( data . runtime ) ) )
324324 ) ;
325325 } else {
326326 replacements . set ( 'runtime' , replacer ( '_' ) ) ;
0 commit comments