I see that most package.json have webpack and babel in their devDependency list. So if these aren't needed in order to use that package, that must mean these devDependencies must be used before a project installs that package, right? When does this happen? Does it look like any one of the below steps?
- deploy package
- package gets built
- bundle along with dependencies are hosted online
- npm install $package will only get bundle and dependencies
OR
- deploy package
- package along with dependencies and devDependencies are hosted online
- npm install $package will cause package to be built and and resulting bundle will be downloaded along with dependencies
If devDependencies aren't in the picture at all, how does a package that relies on webpack and babel to transcompile its es6 into es5 work with a project that is only in es5?