@node-loader/babel
A nodejs loader for babel. This allows you to compile all files with babel before they are executed in Node.
This project is similar to @babel/node, except that it works with ES modules.
Installation
npm install --save @node-loader/babel
yarn add --save @node-loader/babel
Usage
Run node with the --experimental-loader flag:
node --experimental-loader @node-loader/babel file.js
Configuration
Babel configuration files are loaded and applied per the normal rules.
Composition
If you wish to combine the babel loader with other NodeJS loaders, you may do so by using node-loader-core.