(I should clarify up front: My question is about closures and client module patterns in Javascript. It\'s not about how to use jQuery.noConflict().)
I\'ve got a bit of J
in my app.js I have this
var $ = require('jquery')(window); global.jQuery = require("jquery");
and then use download from npm "plugin" and import de module and execute, like this.
var plugin = require('plugin'); plugin();
and works fine.