Quantcast
Channel: JavaScriptMVC Forum
Viewing all articles
Browse latest Browse all 3491

Can package.json meta dependencies be split into multiple files or used with System.meta configration

$
0
0
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?

Context: This dependency migration usage originated by removing the .then statements.

```
{ "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"
    ]
};
steal("./toggle/library");
```

Viewing all articles
Browse latest Browse all 3491

Trending Articles