That is the proper way to set the dependency. Probably you want to set
up a path for your bootstrap:
-
- paths: {
- "bootstrap/*.js": "bower_components/bootstrap/js/bootstrap-*.js"
- }
Then you can simple require("bootstrap/alert");
SystemJS is going to implement wildcard meta config so you can do
something like this:
- meta: {
- "bootstrap/*": {
- deps: ["jquery"]
- }
- }
But for now you have to define them individually.