2 ms·
Then you'd have to have your compiler (like typescript or babel) be dependencies instead of devDependencies.
by AgentME 8y ago
Then you'd have to have your compiler (like typescript or babel) be dependencies instead of devDependencies.
- Osiris 8y agoThat's not exactly what I meant. I was thinking something along the lines of a more universal way for npm to serve up compatible code without the package publisher having to pre-compile everything to make it compatible with every possible usage scenario. I'm not exactly sure how that would work, but I think it's a bad idea to push all that to package publishers .
- gedy 8y agoThat's a cool idea, assuming you mean something like: npm install some-library -type umd and have npm server handle this automatically.