From 29d49032298a2f8fb8152d6e7b6b96d4c1e87fd9 Mon Sep 17 00:00:00 2001 From: Brian Hough Date: Wed, 31 Jan 2024 19:40:40 -0800 Subject: [PATCH] chore(rollup): remove annotate pure functions Remove unneeded pure function annotation plugin. re: #642 --- babel.config.js | 1 - docs/assets/polished.js | 30 +++++++++++++++--------------- package.json | 1 - rollup.config.js | 1 - yarn.lock | 11 +++-------- 5 files changed, 18 insertions(+), 26 deletions(-) diff --git a/babel.config.js b/babel.config.js index 5599a54a..c5d04359 100644 --- a/babel.config.js +++ b/babel.config.js @@ -15,7 +15,6 @@ module.exports = { ], plugins: [ cjs && "add-module-exports", - "annotate-pure-calls", "preval", ].filter(Boolean), }; diff --git a/docs/assets/polished.js b/docs/assets/polished.js index 9c0c54a8..75c65ce7 100644 --- a/docs/assets/polished.js +++ b/docs/assets/polished.js @@ -623,7 +623,7 @@ * 'height': '1em' * } */ - var em = /*#__PURE__*/pxtoFactory('em'); + var em = pxtoFactory('em'); var em$1 = em; var cssRegex = /^([+-]?(?:\d+|\d*\.\d+))([a-z]*|%)$/; @@ -789,7 +789,7 @@ * 'height': '1rem' * } */ - var rem = /*#__PURE__*/pxtoFactory('rem'); + var rem = pxtoFactory('rem'); var rem$1 = rem; var defaultFontSize = 16; @@ -2591,7 +2591,7 @@ } // prettier-ignore - var curriedAdjustHue = /*#__PURE__*/curry /* :: */(adjustHue); + var curriedAdjustHue = curry /* :: */(adjustHue); var curriedAdjustHue$1 = curriedAdjustHue; /** @@ -2660,7 +2660,7 @@ } // prettier-ignore - var curriedDarken = /*#__PURE__*/curry /* :: */(darken); + var curriedDarken = curry /* :: */(darken); var curriedDarken$1 = curriedDarken; /** @@ -2696,7 +2696,7 @@ } // prettier-ignore - var curriedDesaturate = /*#__PURE__*/curry /* :: */(desaturate); + var curriedDesaturate = curry /* :: */(desaturate); var curriedDesaturate$1 = curriedDesaturate; /** @@ -2889,7 +2889,7 @@ } // prettier-ignore - var curriedLighten = /*#__PURE__*/curry /* :: */(lighten); + var curriedLighten = curry /* :: */(lighten); var curriedLighten$1 = curriedLighten; /** @@ -2966,7 +2966,7 @@ } // prettier-ignore - var curriedMix = /*#__PURE__*/curry /* :: */(mix); + var curriedMix = curry /* :: */(mix); var mix$1 = curriedMix; /** @@ -3007,7 +3007,7 @@ } // prettier-ignore - var curriedOpacify = /*#__PURE__*/curry /* :: */(opacify); + var curriedOpacify = curry /* :: */(opacify); var curriedOpacify$1 = curriedOpacify; var defaultReturnIfLightColor = '#000'; @@ -3143,7 +3143,7 @@ } // prettier-ignore - var curriedSaturate = /*#__PURE__*/curry /* :: */(saturate); + var curriedSaturate = curry /* :: */(saturate); var curriedSaturate$1 = curriedSaturate; /** @@ -3177,7 +3177,7 @@ } // prettier-ignore - var curriedSetHue = /*#__PURE__*/curry /* :: */(setHue); + var curriedSetHue = curry /* :: */(setHue); var curriedSetHue$1 = curriedSetHue; /** @@ -3211,7 +3211,7 @@ } // prettier-ignore - var curriedSetLightness = /*#__PURE__*/curry /* :: */(setLightness); + var curriedSetLightness = curry /* :: */(setLightness); var curriedSetLightness$1 = curriedSetLightness; /** @@ -3245,7 +3245,7 @@ } // prettier-ignore - var curriedSetSaturation = /*#__PURE__*/curry /* :: */(setSaturation); + var curriedSetSaturation = curry /* :: */(setSaturation); var curriedSetSaturation$1 = curriedSetSaturation; /** @@ -3277,7 +3277,7 @@ } // prettier-ignore - var curriedShade = /*#__PURE__*/curry /* :: */(shade); + var curriedShade = curry /* :: */(shade); var curriedShade$1 = curriedShade; /** @@ -3309,7 +3309,7 @@ } // prettier-ignore - var curriedTint = /*#__PURE__*/curry /* :: */(tint); + var curriedTint = curry /* :: */(tint); var curriedTint$1 = curriedTint; /** @@ -3350,7 +3350,7 @@ } // prettier-ignore - var curriedTransparentize = /*#__PURE__*/curry /* :: */(transparentize); + var curriedTransparentize = curry /* :: */(transparentize); var curriedTransparentize$1 = curriedTransparentize; /** diff --git a/package.json b/package.json index 8809ef48..1e30bda5 100644 --- a/package.json +++ b/package.json @@ -79,7 +79,6 @@ "babel-eslint": "^10.1.0", "babel-jest": "^29.7.0", "babel-plugin-add-module-exports": "^1.0.2", - "babel-plugin-annotate-pure-calls": "^0.4.0", "babel-plugin-preval": "5.1.0", "cross-env": "^7.0.3", "cz-conventional-changelog": "^3.1.0", diff --git a/rollup.config.js b/rollup.config.js index 38263276..be00a9f5 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -36,7 +36,6 @@ const getBabelOptions = ({ useESModules }, targets) => ({ ], plugins: [ "add-module-exports", - "annotate-pure-calls", "preval", [ "@babel/transform-runtime", diff --git a/yarn.lock b/yarn.lock index 14a6cb14..f3926372 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2808,11 +2808,6 @@ babel-plugin-add-module-exports@^1.0.2: resolved "https://registry.yarnpkg.com/babel-plugin-add-module-exports/-/babel-plugin-add-module-exports-1.0.4.tgz#6caa4ddbe1f578c6a5264d4d3e6c8a2720a7ca2b" integrity sha512-g+8yxHUZ60RcyaUpfNzy56OtWW+x9cyEe9j+CranqLiqbju2yf/Cy6ZtYK40EZxtrdHllzlVZgLmcOUCTlJ7Jg== -babel-plugin-annotate-pure-calls@^0.4.0: - version "0.4.0" - resolved "https://registry.yarnpkg.com/babel-plugin-annotate-pure-calls/-/babel-plugin-annotate-pure-calls-0.4.0.tgz#78aa00fd878c4fcde4d49f3da397fcf5defbcce8" - integrity sha512-oi4M/PWUJOU9ZyRGoPTfPMqdyMp06jbJAomd3RcyYuzUtBOddv98BqLm96Lucpi2QFoQHkdGQt0ACvw7VzVEQA== - babel-plugin-istanbul@^6.1.1: version "6.1.1" resolved "https://registry.yarnpkg.com/babel-plugin-istanbul/-/babel-plugin-istanbul-6.1.1.tgz#fa88ec59232fd9b4e36dbbc540a8ec9a9b47da73" @@ -5684,9 +5679,9 @@ ignore-walk@^6.0.4: minimatch "^9.0.0" ignore@^5.2.0, ignore@^5.2.4: - version "5.3.0" - resolved "https://registry.yarnpkg.com/ignore/-/ignore-5.3.0.tgz#67418ae40d34d6999c95ff56016759c718c82f78" - integrity sha512-g7dmpshy+gD7mh88OC9NwSGTKoc3kyLAZQRU1mt53Aw/vnvfXnbC+F/7F7QoYVKbV+KNvJx8wArewKy1vXMtlg== + version "5.3.1" + resolved "https://registry.yarnpkg.com/ignore/-/ignore-5.3.1.tgz#5073e554cd42c5b33b394375f538b8593e34d4ef" + integrity sha512-5Fytz/IraMjqpwfd34ke28PTVMjZjJG2MPn5t7OE4eUCUNf8BAa7b5WUS9/Qvr6mwOQS7Mk6vdsMno5he+T8Xw== import-fresh@^3.0.0, import-fresh@^3.2.1, import-fresh@^3.3.0: version "3.3.0"