Skip to content

Commit

Permalink
Change some exports to move towards more ESM compatibility (#1154)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielholmes authored Feb 5, 2023
1 parent 19ba1d6 commit b6f1e35
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/core/src/modules/phash.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,4 +179,4 @@ function applyDCT(f, size) {
return F;
}

module.exports = ImagePHash;
export default ImagePHash;
2 changes: 1 addition & 1 deletion packages/plugin-resize/src/modules/resize.js
Original file line number Diff line number Diff line change
Expand Up @@ -545,4 +545,4 @@ Resize.prototype.generateUint8Buffer = function (bufferLength) {
}
};

module.exports = Resize;
export default Resize;
4 changes: 3 additions & 1 deletion packages/plugin-resize/src/modules/resize2.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* THE SOFTWARE.
*/

module.exports = {
const operations = {
nearestNeighbor(src, dst) {
const wSrc = src.width;
const hSrc = src.height;
Expand Down Expand Up @@ -291,3 +291,5 @@ module.exports = {
return this._interpolate2D(src, dst, options, interpolateBezier);
},
};

export default operations;

0 comments on commit b6f1e35

Please sign in to comment.