Babel Flashcards
1
Q
What is Babel?
A
Babel is a js complier used to transform syntax. It is able to convert es6 and beyond’s code for es5 compatibility. Babel can also polyfill features that are missing from es5. Babel can convert JSX syntax into React compliant code.
2
Q
What is a Plug-in?
A
A software component that adds a specific feature to an existing program.
3
Q
What is a Webpack loader?
A
A webpack loader is able to transform code before it is imported/loaded.
4
Q
How can you make Babel and Webpack work together?
A
Both babel and webpacks should be installed as devDependencies. The babel-loader must be present in the webpack.config.js file.