Skip to content

Commit c5f280d

Browse files
committed
Solve loading JQuery as module on Meteor
1 parent 68839f2 commit c5f280d

File tree

3 files changed

+3
-21
lines changed

3 files changed

+3
-21
lines changed

dist/jquery.mask.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141

4242
if (typeof define === 'function' && define.amd) {
4343
define(['jquery'], factory);
44-
} else if (typeof exports === 'object') {
44+
} else if (typeof exports === 'object' && typeof Meteor === 'undefined') {
4545
module.exports = factory(require('jquery'));
4646
} else {
4747
factory(jQuery || Zepto);

dist/jquery.mask.min.js

Lines changed: 1 addition & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/jquery.mask.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141

4242
if (typeof define === 'function' && define.amd) {
4343
define(['jquery'], factory);
44-
} else if (typeof exports === 'object') {
44+
} else if (typeof exports === 'object' && typeof Meteor === 'undefined') {
4545
module.exports = factory(require('jquery'));
4646
} else {
4747
factory(jQuery || Zepto);

0 commit comments

Comments
 (0)