Quantcast
Viewing all articles
Browse latest Browse all 3491

Question about Dependance Management in StealConfig

Rather then steal().then() I'm trying to define module dependancies in stealconfig but running into issues.

In the comments in steal.js (v3.3) it says (about line 2554): 

  1. 'shim': {
          'module id': {
                deps: ['array', 'of', 'ids']
          }
    }
This throws an error: no id - line: 2275 in steal.js

or

  1. 'shim': {
          'module id': ['array', 'of', 'ids']
    }
This does not throw an error but does not maintain the dependency relationships

I have also tried mapping the files to ids via map in the config object literal with the same results.

Can anyone point me in the right direction? Any help is greatly appreciated.

Thanks,

Alex





Viewing all articles
Browse latest Browse all 3491

Trending Articles