Skip to content

Commit

Permalink
Remove pretty printing from register cache (#14300)
Browse files Browse the repository at this point in the history
  • Loading branch information
jlennox committed Feb 24, 2022
1 parent a53c2fa commit 9d31956
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/babel-register/src/worker/cache.js
Expand Up @@ -35,7 +35,7 @@ function save() {
let serialised = "{}";

try {
serialised = JSON.stringify(data, null, " ");
serialised = JSON.stringify(data);
} catch (err) {
if (err.message === "Invalid string length") {
err.message = "Cache too large so it's been cleared.";
Expand Down

0 comments on commit 9d31956

Please sign in to comment.