Browser Compatibility and Transpilation

1.Is the following logic correct then?
When we type npm install babel-cli -D we download the package for the Babel command line tools and since we added -D it will add this package to devDependencies? When another developer downloads the files which has package.json (created using npm init). This will then allow the developer to automicatically download the packages using devDependencies which will generate a node_modules directory with numerous packages?

  1. What’s the purpose of devDependencies inside package.json AND node_modules?
  2. Why wouldn’t someone just download the node_modules pre-installed with the file?

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.