Skip to content

Latest commit

 

History

History
28 lines (17 loc) · 1.61 KB

File metadata and controls

28 lines (17 loc) · 1.61 KB

In this directory, see also hidden files:
.babelrc (CMSB: renamed _babelrc) - The alternative approach is to put the babel presets in package.json, which is what I've done here.

Useful Articles

Backend Setup

Parts 1-2

  1. How to set up a modern Javascript project (rwieruch 2019 Jun)
  2. The minimal Node.js with Babel Setup (rwieruch 2019 Jun)

Note comment: https://www.robinwieruch.de/minimal-node-js-babel-setup/#comment-4056355053

You can already use many ES6 features natively as of Node 7. Babel is only useful for ESM, or perhaps React server-rendered apps as well. Also, without any configuration, babel-preset-env will transpile language constructs like async/await into their ES5 implementations, even though the original code can still run on Node.

But ES6 import and export cannot be used without an experimental Node flag. Node does not yet support all the ES6 natively, unfortunately.

Frontend Setup

Parts 1-4

  1. How to set up a modern Javascript project (rwieruch 2019 Jun)
  2. How to set up a Webpack project (rwieruch 2019 Jun)
  3. How to set up Webpack with Babel (rwieruch 2019 Jun))
  4. How to set up React with Webpack and Babel (rwieruch 2019 Jun)

Excellent article - Used to get this setup up and running.