mirror of
https://github.com/lovell/sharp.git
synced 2025-07-09 18:40:16 +02:00
Allow code bundling of utility functions (#2586)
This commit is contained in:
parent
f6f16b91db
commit
9c64710c8b
@ -157,14 +157,10 @@ simd(true);
|
|||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
module.exports = function (Sharp) {
|
module.exports = function (Sharp) {
|
||||||
[
|
Sharp.cache = cache;
|
||||||
cache,
|
Sharp.concurrency = concurrency;
|
||||||
concurrency,
|
Sharp.counters = counters;
|
||||||
counters,
|
Sharp.simd = simd;
|
||||||
simd
|
|
||||||
].forEach(function (f) {
|
|
||||||
Sharp[f.name] = f;
|
|
||||||
});
|
|
||||||
Sharp.format = format;
|
Sharp.format = format;
|
||||||
Sharp.interpolators = interpolators;
|
Sharp.interpolators = interpolators;
|
||||||
Sharp.versions = versions;
|
Sharp.versions = versions;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user