| 1 |
An alternative may be to use babel-node, a CLI utility that transpiles your ES6 code before executing it through node. You can install babel-node, along with the standalone Babel transpiler, using the command shown below. js npm install babel --global While babel-node works great in development, it's not recommended for production as it can introduce significant lag in startup time. A better approach might be to precompile your modules before every deployment. That way your application won't need to recompile itself at startup. |
Комментарии