8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d5891a commit c53b4e9Copy full SHA for c53b4e9
lib/services/log-source-map-service.ts
@@ -69,6 +69,15 @@ export class LogSourceMapService implements Mobile.ILogSourceMapService {
69
if (!this.$fs.getFsStats(filePath).isDirectory()) {
70
const mapFile = filePath + ".map";
71
let sourceMapRaw;
72
+
73
+ // Skip files bigger than 50MB
74
+ if (this.$fs.getFileSize(filePath) > 50 * 1000 * 1000) {
75
+ this.$logger.trace(
76
+ `Skipping source map for file ${filePath} because it is too big (> 50MB).`
77
+ );
78
+ return;
79
+ }
80
81
const source = this.$fs.readText(filePath);
82
if (this.$fs.exists(mapFile)) {
83
sourceMapRaw = sourceMapConverter.fromMapFileSource(
0 commit comments