babel-intro Flashcards
What is Babel?
A JS compiler that was initially made to convert newer JS functionality that does not work in the browser to older JS that does work.
What is a Plug-in?
An additional software that can go on top of an already built software. A customization that you add to an existing piece of software.
What is a Webpack loader?
Transformations that are applied to the source code of the module that allow you to pre-process files as you import or load them.
How can you make Babel and Webpack work together?
There has to be a babel-loader package added to dependencies so that our webpack code gets transformed into older JS code. Inside webpack.config.js there is a module.exports object that sets a specific rule that says for every JS file, babel loader should run the code through plugins and give it back to webpack in its converted state to be bundled like normal.