File: fix-large-numbers.diff

package info (click to toggle)
node-babel7 7.20.15%2Bds1%2B~cs214.269.168-10
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 135,716 kB
  • sloc: javascript: 162,146; sh: 364; makefile: 306
file content (27 lines) | stat: -rw-r--r-- 885 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
Description: fix large numbers
Author: Yadd <yadd@debian.org>
Forwarded: not-needed
Last-Update: 2021-12-16

--- a/packages/babel-core/src/transformation/normalize-file.ts
+++ b/packages/babel-core/src/transformation/normalize-file.ts
@@ -12,7 +12,7 @@
 import cloneDeep from "./util/clone-deep";
 
 const debug = buildDebug("babel:transform:file");
-const LARGE_INPUT_SOURCEMAP_THRESHOLD = 3_000_000;
+const LARGE_INPUT_SOURCEMAP_THRESHOLD = 3000000;
 
 // These regexps are copied from the convert-source-map package,
 // but without // or /* at the beginning of the comment.
--- a/packages/babel-generator/src/index.ts
+++ b/packages/babel-generator/src/index.ts
@@ -95,7 +95,7 @@
   }
 
   if (format.compact === "auto") {
-    format.compact = code.length > 500_000; // 500KB
+    format.compact = code.length > 500000; // 500KB
 
     if (format.compact) {
       console.error(