mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 10:12:45 +00:00
TGUI Update
This commit is contained in:
committed by
CHOMPStation2
parent
94f7414bca
commit
7144410a11
@@ -29,7 +29,9 @@ export const loadSourceMaps = async (bundleDir) => {
|
||||
for (let path of paths) {
|
||||
try {
|
||||
const file = basename(path).replace('.map', '');
|
||||
const consumer = await new SourceMapConsumer(JSON.parse(fs.readFileSync(path, 'utf8')));
|
||||
const consumer = await new SourceMapConsumer(
|
||||
JSON.parse(fs.readFileSync(path, 'utf8'))
|
||||
);
|
||||
sourceMaps.push({ file, consumer });
|
||||
} catch (err) {
|
||||
logger.error(err);
|
||||
@@ -76,7 +78,9 @@ export const retrace = (stack) => {
|
||||
if (!file) {
|
||||
return ` at ${methodName}`;
|
||||
}
|
||||
const compactPath = file.replace(/^webpack:\/\/\/?/, './').replace(/.*node_modules\//, '');
|
||||
const compactPath = file
|
||||
.replace(/^webpack:\/\/\/?/, './')
|
||||
.replace(/.*node_modules\//, '');
|
||||
return ` at ${methodName} (${compactPath}:${lineNumber})`;
|
||||
})
|
||||
.join('\n');
|
||||
|
||||
Reference in New Issue
Block a user