Showing
1 changed file
with
7 additions
and
7 deletions
@@ -31,13 +31,13 @@ const loadFileSourceMap = (fileUrl) => { | @@ -31,13 +31,13 @@ const loadFileSourceMap = (fileUrl) => { | ||
31 | }; | 31 | }; |
32 | 32 | ||
33 | const parse = ({fileUrl, line, column}) => { | 33 | const parse = ({fileUrl, line, column}) => { |
34 | - // if (!fileUrl.test(/\.js(\?[^\?]*)?$/)) { | ||
35 | - // return Promise.resolve({ | ||
36 | - // source: fileUrl, | ||
37 | - // line, | ||
38 | - // column | ||
39 | - // }); | ||
40 | - // } | 34 | + if (!/\.js(\?[^\?]*)?$/.test(fileUrl)) { |
35 | + return Promise.resolve({ | ||
36 | + source: fileUrl, | ||
37 | + line, | ||
38 | + column | ||
39 | + }); | ||
40 | + } | ||
41 | return loadFileSourceMap(fileUrl).then(source => { | 41 | return loadFileSourceMap(fileUrl).then(source => { |
42 | if (!source || !line) { | 42 | if (!source || !line) { |
43 | return void 0; | 43 | return void 0; |
-
Please register or login to post a comment