3 ms·
The difference between regular dependencies and devDependencies is very blurry with things like Webpack and Babel - they're not required at runtime but they're
by madeofpalk 10y ago
The difference between regular dependencies and devDependencies is very blurry with things like Webpack and Babel - they're not required at runtime but they're responsible for significant amounts of runtime.
Luckily, npm shrinkwrap accepts a --dev option to include devDependencies
- bsimpson 10y agoAsk yourself "will authors consuming my module need this dependency?". If not, it's a development dependency. If you're including pure-JavaScript artifacts in your npm releases, downstream authors probably don't care about your Babel/Webpack configuration.