mirror of
https://github.com/morluto/rea.git
synced 2026-11-03 05:16:16 +00:00
fix(source-maps): accept omitted names during browser collection (#2831)
This commit is contained in:
1 parent
f0b8ae1fc8
commit
1016c96e6b
2 files changed
+98
-5
No files matched your search
@@ -267,11 +267,6 @@ const inspectLeaf = (
|
||||
consumeRecords(budget, Array.isArray(rawNames) ? rawNames.length : 0);
|
||||
consumeRecords(budget, Array.isArray(rawContents) ? rawContents.length : 0);
|
||||
options.check?.();
|
||||
if (options.profile === "browser-collection" && !Array.isArray(rawNames))
|
||||
throw new SourceMapFormatFailure(
|
||||
"format",
|
||||
"Source-map leaf requires a names array.",
|
||||
);
|
||||
if (
|
||||
options.profile === "browser-collection" &&
|
||||
!hasValidSourceMapContents(
|
||||
|
||||
Reference in new issue
Block a user