I have an application in which I should include several bootstrap
modules, so I have a bootstrap.js module:
- require('bower_components/bootstrap/js/bootstrap-tab')
- require('bower_components/bootstrap/js/bootstrap-modal')
- require('bower_components/bootstrap/js/bootstrap-dropdown')
- require('bower_components/bootstrap/js/bootstrap-tooltip')
- require('bower_components/bootstrap/js/bootstrap-alert')
- require('bower_components/bootstrap/js/bootstrap-popover')
I need jquery module to be loaded prior all this
files, these modules are global files, but this bootstrap.js module
is CJS.
Currently I understand only one way to set jquery as dependcy for
all this files in stealconfig.js:
- meta: {
- 'jquery': {exports: 'jQuery'},
- 'bower_components/bootstrap/js/bootstrap-tab': {deps: ['jquery']},
- 'bower_components/bootstrap/js/bootstrap-modal': {deps: ['jquery']},
- 'bower_components/bootstrap/js/bootstrap-dropdown': {deps: ['jquery']},
- 'bower_components/bootstrap/js/bootstrap-tooltip': {deps: ['jquery']},
- 'bower_components/bootstrap/js/bootstrap-alert': {deps: ['jquery']},
- 'bower_components/bootstrap/js/bootstrap-popover': {deps: ['jquery']},
- },
What is the better way to implement jquery dependency
for all this files?