Use babel-preset-env to Use Native Node Features and Also Use Babel Plugins

Опубликовано: 19 Октябрь 2024
на канале: Code Daily
882
2

In this lesson we'll show how to setup a `.babelrc` file with presets and plugins. Then create npm scripts that use `babel-node` and `babel`. With `babel-preset-env` we'll show how to target specific versions of node and how to use babel plugins, while not transpiling features (like `async` `await`) that are already supported by node natively.