Open guybedford opened 9 years ago
It could be possible to define these dependencies through custom config -
System.config({
meta: {
'npm:image-size@x.y.z/lib/index': {
deps: ['./lib/detector']
}
}
});
But that won't work for an override. I'd suggest rather forking the repo to ensure static requires.
Right this works with config. So there is no way handle such by System.js? Isn't it possible to decare the deps inside th package but not in the code?
No not currently - that's why I'd suggest forking the repo and adding the meta custom -
"deps ./lib/detector";
// ... source
but is it possilbe in future, how?
By extending deps shims to formats other than globals.
The npm version is currently giving:
This may need some override work.
//cc @whitecolor