Skip to content

Commit

Permalink
chore(rollup): remove annotate pure functions
Browse files Browse the repository at this point in the history
Remove unneeded pure function annotation plugin.

re: #642
  • Loading branch information
bhough committed Feb 1, 2024
1 parent b579442 commit 29d4903
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 26 deletions.
1 change: 0 additions & 1 deletion babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ module.exports = {
],
plugins: [
cjs && "add-module-exports",
"annotate-pure-calls",
"preval",
].filter(Boolean),
};
30 changes: 15 additions & 15 deletions docs/assets/polished.js
Original file line number Diff line number Diff line change
Expand Up @@ -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]*|%)$/;
Expand Down Expand Up @@ -789,7 +789,7 @@
* 'height': '1rem'
* }
*/
var rem = /*#__PURE__*/pxtoFactory('rem');
var rem = pxtoFactory('rem');
var rem$1 = rem;

var defaultFontSize = 16;
Expand Down Expand Up @@ -2591,7 +2591,7 @@
}

// prettier-ignore
var curriedAdjustHue = /*#__PURE__*/curry /* ::<number | string, string, string> */(adjustHue);
var curriedAdjustHue = curry /* ::<number | string, string, string> */(adjustHue);
var curriedAdjustHue$1 = curriedAdjustHue;

/**
Expand Down Expand Up @@ -2660,7 +2660,7 @@
}

// prettier-ignore
var curriedDarken = /*#__PURE__*/curry /* ::<number | string, string, string> */(darken);
var curriedDarken = curry /* ::<number | string, string, string> */(darken);
var curriedDarken$1 = curriedDarken;

/**
Expand Down Expand Up @@ -2696,7 +2696,7 @@
}

// prettier-ignore
var curriedDesaturate = /*#__PURE__*/curry /* ::<number | string, string, string> */(desaturate);
var curriedDesaturate = curry /* ::<number | string, string, string> */(desaturate);
var curriedDesaturate$1 = curriedDesaturate;

/**
Expand Down Expand Up @@ -2889,7 +2889,7 @@
}

// prettier-ignore
var curriedLighten = /*#__PURE__*/curry /* ::<number | string, string, string> */(lighten);
var curriedLighten = curry /* ::<number | string, string, string> */(lighten);
var curriedLighten$1 = curriedLighten;

/**
Expand Down Expand Up @@ -2966,7 +2966,7 @@
}

// prettier-ignore
var curriedMix = /*#__PURE__*/curry /* ::<number | string, string, string, string> */(mix);
var curriedMix = curry /* ::<number | string, string, string, string> */(mix);
var mix$1 = curriedMix;

/**
Expand Down Expand Up @@ -3007,7 +3007,7 @@
}

// prettier-ignore
var curriedOpacify = /*#__PURE__*/curry /* ::<number | string, string, string> */(opacify);
var curriedOpacify = curry /* ::<number | string, string, string> */(opacify);
var curriedOpacify$1 = curriedOpacify;

var defaultReturnIfLightColor = '#000';
Expand Down Expand Up @@ -3143,7 +3143,7 @@
}

// prettier-ignore
var curriedSaturate = /*#__PURE__*/curry /* ::<number | string, string, string> */(saturate);
var curriedSaturate = curry /* ::<number | string, string, string> */(saturate);
var curriedSaturate$1 = curriedSaturate;

/**
Expand Down Expand Up @@ -3177,7 +3177,7 @@
}

// prettier-ignore
var curriedSetHue = /*#__PURE__*/curry /* ::<number | string, string, string> */(setHue);
var curriedSetHue = curry /* ::<number | string, string, string> */(setHue);
var curriedSetHue$1 = curriedSetHue;

/**
Expand Down Expand Up @@ -3211,7 +3211,7 @@
}

// prettier-ignore
var curriedSetLightness = /*#__PURE__*/curry /* ::<number | string, string, string> */(setLightness);
var curriedSetLightness = curry /* ::<number | string, string, string> */(setLightness);
var curriedSetLightness$1 = curriedSetLightness;

/**
Expand Down Expand Up @@ -3245,7 +3245,7 @@
}

// prettier-ignore
var curriedSetSaturation = /*#__PURE__*/curry /* ::<number | string, string, string> */(setSaturation);
var curriedSetSaturation = curry /* ::<number | string, string, string> */(setSaturation);
var curriedSetSaturation$1 = curriedSetSaturation;

/**
Expand Down Expand Up @@ -3277,7 +3277,7 @@
}

// prettier-ignore
var curriedShade = /*#__PURE__*/curry /* ::<number | string, string, string> */(shade);
var curriedShade = curry /* ::<number | string, string, string> */(shade);
var curriedShade$1 = curriedShade;

/**
Expand Down Expand Up @@ -3309,7 +3309,7 @@
}

// prettier-ignore
var curriedTint = /*#__PURE__*/curry /* ::<number | string, string, string> */(tint);
var curriedTint = curry /* ::<number | string, string, string> */(tint);
var curriedTint$1 = curriedTint;

/**
Expand Down Expand Up @@ -3350,7 +3350,7 @@
}

// prettier-ignore
var curriedTransparentize = /*#__PURE__*/curry /* ::<number | string, string, string> */(transparentize);
var curriedTransparentize = curry /* ::<number | string, string, string> */(transparentize);
var curriedTransparentize$1 = curriedTransparentize;

/**
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 0 additions & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ const getBabelOptions = ({ useESModules }, targets) => ({
],
plugins: [
"add-module-exports",
"annotate-pure-calls",
"preval",
[
"@babel/transform-runtime",
Expand Down
11 changes: 3 additions & 8 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 29d4903

Please sign in to comment.