Tuesday, 6 August 2019

Babel-core Vs Babel-loader

Bable-coreif you want to use babel in your real project, you need to install babel but there's no babel package available.babel split it up into two separate packages: babel-cli and babel-core**babel-cli** : which can be used to compile files from the command line.**babel-core** : if you want to use the Node API you can install babel-core, Same as "babel-cli" except you would use it programmatically inside your app.use "babel-cli" or "babel-core" to compile your files before production.Babel-loaderLoaders are kind of like “tasks”, They give the ability to leverage webpack's bundling capabilities for all kinds of files by converting them to valid modules that webpack can process. Webpack has great Babel support through babel-loader

Submitted August 06, 2019 at 03:41PM by evilPl4n

No comments:

Post a Comment