mirror of
https://github.com/lovell/sharp.git
synced 2025-12-19 07:15:08 +01:00
Build prototype with Object.assign to allow minification (#1475)
This commit is contained in:
committed by
Lovell Fuller
parent
d26ccf6294
commit
383b933e26
@@ -362,7 +362,7 @@ function sequentialRead (sequentialRead) {
|
||||
* @private
|
||||
*/
|
||||
module.exports = function (Sharp) {
|
||||
[
|
||||
Object.assign(Sharp.prototype, {
|
||||
// Private
|
||||
_createInputDescriptor,
|
||||
_write,
|
||||
@@ -374,7 +374,5 @@ module.exports = function (Sharp) {
|
||||
stats,
|
||||
limitInputPixels,
|
||||
sequentialRead
|
||||
].forEach(function (f) {
|
||||
Sharp.prototype[f.name] = f;
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user