Open mallorydxw opened 6 years ago
i.e. in a .js file that needs jQuery:
const jQuery = require('jquery')
Do not load it as a separate file. We could maybe do window.jQuery = require('jquery') if we needed it globally available (i.e. if a plugin uses it).
window.jQuery = require('jquery')
During a recent sprint Gaz came across a module which only works if jQuery is loaded as a CommonJS module (smartmenus).
i.e. in a .js file that needs jQuery:
Do not load it as a separate file. We could maybe do
window.jQuery = require('jquery')
if we needed it globally available (i.e. if a plugin uses it).During a recent sprint Gaz came across a module which only works if jQuery is loaded as a CommonJS module (smartmenus).