diff --git a/packages/babel-plugin-polyfill-corejs3/src/built-in-definitions.ts b/packages/babel-plugin-polyfill-corejs3/src/built-in-definitions.ts index 351db63b..d5c7c45d 100644 --- a/packages/babel-plugin-polyfill-corejs3/src/built-in-definitions.ts +++ b/packages/babel-plugin-polyfill-corejs3/src/built-in-definitions.ts @@ -385,7 +385,7 @@ export const StaticProperties: ObjectMap2 = { "es.object.create", "es.object.freeze", ]), - stringify: define("json/stringify", ["es.json.stringify"], "es.symbol"), + stringify: define("json/stringify", ["es.json.stringify", "es.symbol"]), }, Math: { diff --git a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/built-in-static-methods-proposals/output.js b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/built-in-static-methods-proposals/output.js index 5ca9f715..d11ca14f 100644 --- a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/built-in-static-methods-proposals/output.js +++ b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/built-in-static-methods-proposals/output.js @@ -2,7 +2,6 @@ var _Array$from = require("core-js-pure/features/array/from.js"); var _Array$isArray = require("core-js-pure/features/array/is-array.js"); var _Array$of = require("core-js-pure/features/array/of.js"); var _Date$now = require("core-js-pure/features/date/now.js"); -var _JSON$stringify = require("core-js-pure/features/json/stringify.js"); var _Math$DEG_PER_RAD = require("core-js-pure/features/math/deg-per-rad.js"); var _Math$RAD_PER_DEG = require("core-js-pure/features/math/rad-per-deg.js"); var _Math$acosh = require("core-js-pure/features/math/acosh.js"); @@ -110,7 +109,7 @@ _Array$from; _Array$isArray; _Array$of; _Date$now; -_JSON$stringify; +JSON.stringify; _Math$DEG_PER_RAD; _Math$RAD_PER_DEG; _Math$acosh; diff --git a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/built-in-static-methods/output.js b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/built-in-static-methods/output.js index b0040d5c..0fd276d0 100644 --- a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/built-in-static-methods/output.js +++ b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/built-in-static-methods/output.js @@ -2,7 +2,6 @@ var _Array$from = require("core-js-pure/stable/array/from.js"); var _Array$isArray = require("core-js-pure/stable/array/is-array.js"); var _Array$of = require("core-js-pure/stable/array/of.js"); var _Date$now = require("core-js-pure/stable/date/now.js"); -var _JSON$stringify = require("core-js-pure/stable/json/stringify.js"); var _Math$acosh = require("core-js-pure/stable/math/acosh.js"); var _Math$asinh = require("core-js-pure/stable/math/asinh.js"); var _Math$atanh = require("core-js-pure/stable/math/atanh.js"); @@ -84,7 +83,7 @@ _Array$from; _Array$isArray; _Array$of; _Date$now; -_JSON$stringify; +JSON.stringify; Math.DEG_PER_RAD; Math.RAD_PER_DEG; _Math$acosh;