...
|
...
|
@@ -31,13 +31,13 @@ const loadFileSourceMap = (fileUrl) => { |
|
|
};
|
|
|
|
|
|
const parse = ({fileUrl, line, column}) => {
|
|
|
if (!fileUrl.test(/\.js(\?[^\?]*)?$/)) {
|
|
|
return Promise.resolve({
|
|
|
source: fileUrl,
|
|
|
line,
|
|
|
column
|
|
|
});
|
|
|
}
|
|
|
// if (!fileUrl.test(/\.js(\?[^\?]*)?$/)) {
|
|
|
// return Promise.resolve({
|
|
|
// source: fileUrl,
|
|
|
// line,
|
|
|
// column
|
|
|
// });
|
|
|
// }
|
|
|
return loadFileSourceMap(fileUrl).then(source => {
|
|
|
if (!source || !line) {
|
|
|
return void 0;
|
...
|
...
|
|