babel-intro Flashcards
1
Q
What is Babel?
A
a compiler that converts ecma2015 into backwards compatible version of Js.
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-transofrm-block-scoping).
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).