babel-intro Flashcards
What is Babel?
Babel is a JavaScript compiler. A toolchain that is mainly used to convert ES6 code into a backwards compatible version of JavaScript in current and older browsers or environments.
What is a plug-in?
A software component that adds a specific feature to an existing computer program.
What is a webpack loader?
Loaders are transformations that are applied to the source code of a module. They allow you to pre-process files as you import or “load” them. Thus, loaders are kind of like “tasks” in other build tools and provide a powerful way to handle front-end build steps. Loaders can transform files from a different language (like TypeScript) to JavaScript or load inline images as data URLs. Loaders even allow you to do things like import CSS files directly from your JavaScript modules.
How can you make Babel and Webpack work together?
Use a loader. Use the babel loader.