devDependency modules

To maintain consistency throughout the development of the MERN applications, we will use JavaScript ES6 across the stack. As a consequence, and also to aid the development process, we will use the following additional npm modules to compile and bundle the code and to automatically reload the server and browser app as the code is updated during development:

  • Babel modules are needed for converting ES6 and JSX to suitable JavaScript for all browsers. The modules needed to get Babel working are:
    • babel-core
    • babel-loader for transpiling JavaScript files with Webpack
    • babel-preset-env, babel-preset-react, and babel-preset-stage-2 to provide support for React, the latest JS features, and some stage-x features such as declaring ...

Get Full-Stack React Projects now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.