RequireJS how specify shim dependency from jam file package section

我是研究僧i 提交于 2019-12-08 13:26:42
问题 I'm working in a project with backbone-boilerplate which uses RequireJS to load modules and JamJS to manage them. My require config.js file is as follows: require.config({ deps: ["../vendor/jam/require.config", "main"], paths: { "backbone.localStorage": "../vendor/backbone.localStorage-1.0/backbone.localStorage" }, shim: { "backbone.localStorage": { deps: ['backbone'] } } }); As you can see the RequireJS load config from jam config file jam/require.config.js which specifies backbone, jquery