Skip to content

Commit dac3edd

Browse files
committed
Add exports for CommonJS
1 parent 562d259 commit dac3edd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

js/load-image-ios.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
if (typeof define === 'function' && define.amd) {
2121
// Register as an anonymous AMD module:
2222
define(['load-image'], factory);
23+
} else if (typeof module !== 'undefined' && module.exports) {
24+
factory(require('./load-image'));
2325
} else {
2426
// Browser globals:
2527
factory(window.loadImage);

0 commit comments

Comments
 (0)