Skip to content

Commit f95e8d1

Browse files
author
nchase
committed
In Node/CommonJS, actually use the thing that factory exposes
useful for the scenario where a jQuery plugin augments the jQuery object, but also exposes some-other-API/some-other-stuff.
1 parent e7c751e commit f95e8d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jqueryPluginCommonjs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
define(['jquery'], factory);
1010
} else if (typeof exports === 'object') {
1111
// Node/CommonJS
12-
factory(require('jquery'));
12+
module.exports = factory(require('jquery'));
1313
} else {
1414
// Browser globals
1515
factory(jQuery);

0 commit comments

Comments
 (0)