babel Flashcards

1
Q

What is Babel?

A

Babel is a toolchain that is mainly used to convert ECMAScript 2015+ code into a backwards compatible version of JavaScript in current and older browsers or environments.

Here are the main things Babel can do for you:

takes newer JS syntax, converts to older syntax
able to use jsx syntax into something browser can use

Transform syntax
Polyfill features that are missing in your target environment (through a third-party polyfill such as core-js)
Source code transformations (codemods)
And more! (check out these videos for inspiration)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is a Plug-in?

A

preset configuration files that adds a specific feature to an existing computer program

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is a Webpack loader?

A

transformations that are applied to the source code of a module. Allows you to pre-process files as you import or load. Tasks that enable you to handle front-end build steps. Can even import CSS files from JS modules.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How can you make Babel and Webpack work together?

A

babel loader

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

difference between webpack and babel

A

webpack compiles files

babel takes those compiled files and translates them

How well did you know this?
1
Not at all
2
3
4
5
Perfectly