Babel Flashcards
1
Q
What is Babel?
A
a compiler that converts ECMA2015 into backwards compatible version of JavaScript.
converts JSX to JS.
2
Q
What is a Plug-in?
A
a software component that adds a specific feature to an existing computer program. (babel plugin-transform-block-scoping).
“swappable or optional piece of software”
source: lecture
3
Q
What is a Webpack loader?
A
it preprocesses a file before importing with plugins.
4
Q
How can you make Babel and Webpack work together?
A
via babel loader (babel –> one translator for Js, while webpack is the mothership that can translate all kinds of languages).