#87·umd

templates/jqueryPlugin.js doesn't seem to conform to CommonJS spec

Author: malthejorgensenCreated Dec 23, 2016Updated Oct 20, 2017

Not sure if I'm looking at the right CommonJS spec (the commonjs.org-site is a bit confusing), but in the current jQuery plugin template (jqueryPlugin.js, line 7) module.exports is used instead of the CommonJS standard exports.

You can compare this with commonjsStrict, line 23, which does check and use the exports-object – not module.exports.

I think jqueryPlugin.js should be changed to use the exports-object.

Note: Both files were checked at commit 95563fd6b46f06bda0af143ff67292e7f6ede6b7 (latest master as of 23rd Dec 2016)