@@ -25,7 +25,7 @@ const sourceMappingURLRegex = RegExp(
2525 innerRegex . source +
2626 ")" +
2727 ")" +
28- "\\s*"
28+ "\\s*" ,
2929) ;
3030/* eslint-enable prefer-template */
3131
@@ -145,7 +145,7 @@ async function fetchFromFilesystem(loaderContext, sourceURL) {
145145 } ) ;
146146 } catch ( error ) {
147147 throw new Error (
148- `Failed to parse source map from '${ sourceURL } ' file: ${ error } `
148+ `Failed to parse source map from '${ sourceURL } ' file: ${ error } ` ,
149149 ) ;
150150 }
151151
@@ -155,15 +155,15 @@ async function fetchFromFilesystem(loaderContext, sourceURL) {
155155async function fetchPathsFromFilesystem (
156156 loaderContext ,
157157 possibleRequests ,
158- errorsAccumulator = ""
158+ errorsAccumulator = "" ,
159159) {
160160 let result ;
161161
162162 try {
163163 result = await fetchFromFilesystem (
164164 loaderContext ,
165165 possibleRequests [ 0 ] ,
166- errorsAccumulator
166+ errorsAccumulator ,
167167 ) ;
168168 } catch ( error ) {
169169 // eslint-disable-next-line no-param-reassign
@@ -180,7 +180,7 @@ async function fetchPathsFromFilesystem(
180180 return fetchPathsFromFilesystem (
181181 loaderContext ,
182182 tailPossibleRequests ,
183- errorsAccumulator
183+ errorsAccumulator ,
184184 ) ;
185185 }
186186
@@ -196,7 +196,7 @@ async function fetchFromURL(
196196 context ,
197197 url ,
198198 sourceRoot ,
199- skipReading = false
199+ skipReading = false ,
200200) {
201201 // 1. It's an absolute url and it is not `windows` path like `C:\dir\file`
202202 if ( isURL ( url ) ) {
@@ -221,21 +221,21 @@ async function fetchFromURL(
221221 const sourceURL = path . normalize ( pathFromURL ) ;
222222 const { data : sourceContent } = await fetchFromFilesystem (
223223 loaderContext ,
224- sourceURL
224+ sourceURL ,
225225 ) ;
226226
227227 return { sourceURL, sourceContent } ;
228228 }
229229
230230 throw new Error (
231- `Failed to parse source map: '${ url } ' URL is not supported`
231+ `Failed to parse source map: '${ url } ' URL is not supported` ,
232232 ) ;
233233 }
234234
235235 // 2. It's a scheme-relative
236236 if ( / ^ \/ \/ / . test ( url ) ) {
237237 throw new Error (
238- `Failed to parse source map: '${ url } ' URL is not supported`
238+ `Failed to parse source map: '${ url } ' URL is not supported` ,
239239 ) ;
240240 }
241241
@@ -250,13 +250,13 @@ async function fetchFromURL(
250250
251251 if ( url . startsWith ( "/" ) ) {
252252 possibleRequests . push (
253- getAbsolutePath ( context , sourceURL . slice ( 1 ) , sourceRoot )
253+ getAbsolutePath ( context , sourceURL . slice ( 1 ) , sourceRoot ) ,
254254 ) ;
255255 }
256256
257257 const result = await fetchPathsFromFilesystem (
258258 loaderContext ,
259- possibleRequests
259+ possibleRequests ,
260260 ) ;
261261
262262 sourceURL = result . path ;
0 commit comments