Skip to content

Commit

Permalink
Allow code bundling of utility functions (#2586)
Browse files Browse the repository at this point in the history
  • Loading branch information
udivankin authored Feb 20, 2021
1 parent f6f16b9 commit 9c64710
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions lib/utility.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,14 +157,10 @@ simd(true);
* @private
*/
module.exports = function (Sharp) {
[
cache,
concurrency,
counters,
simd
].forEach(function (f) {
Sharp[f.name] = f;
});
Sharp.cache = cache;
Sharp.concurrency = concurrency;
Sharp.counters = counters;
Sharp.simd = simd;
Sharp.format = format;
Sharp.interpolators = interpolators;
Sharp.versions = versions;
Expand Down

0 comments on commit 9c64710

Please sign in to comment.