These are chat archives for stealjs/steal

17th
Aug 2015
DWD
@smoothlikejazz00
Aug 17 2015 22:17

Hi, is there a way to split the dependencies specified in my package.json file meta deps into separate files. currently i have a large file with many different module dependencies, and i would like to keep these dependency definitions with the individual files instead of all being maintained in one is that possible?

{
  "system": {
    "meta": {
      "framework/toggle/toggle" : {
        "deps" : [
          "framework/dependency_libraries/dep1"
        ]
      }
    }
  }
}

I would like to have something like this local to my
say inside of toggle.js, and load this dependency as needed. If implemented this way, I can have separate projects and I do not have to duplicate meta deps in another package.json for a project that shares this same toggle module.

System.meta['framework/toggle/toggle'] = {
    "deps": [
        "framework/dependency_libraries/dep1"
    ]
};