From 6097c17c5caa6a1db63c5c2f79ada5c0ba597c13 Mon Sep 17 00:00:00 2001 From: Diego vDev <1246341+diegovdev@users.noreply.github.com> Date: Fri, 20 Sep 2024 15:45:13 -0400 Subject: [PATCH] Fix to avoid minification problem with esbuild esbuild will minify this to 1.toString (removing the zero) which will result in a syntax error in the browser. --- packages/core-js/internals/uid.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core-js/internals/uid.js b/packages/core-js/internals/uid.js index c02c4011d846..869d8be3711d 100644 --- a/packages/core-js/internals/uid.js +++ b/packages/core-js/internals/uid.js @@ -3,7 +3,7 @@ var uncurryThis = require('../internals/function-uncurry-this'); var id = 0; var postfix = Math.random(); -var toString = uncurryThis(1.0.toString); +var toString = uncurryThis(1.1.toString); module.exports = function (key) { return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);