babel-intro Flashcards

1
Q

What is Babel?

A

A JS compiler that was initially made to convert newer JS functionality that does not work in the browser to older JS that does work.

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

What is a Plug-in?

A

An additional software that can go on top of an already built software. A customization that you add to an existing piece of software.

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 the module that allow you to pre-process files as you import or load them.

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

There has to be a babel-loader package added to dependencies so that our webpack code gets transformed into older JS code. Inside webpack.config.js there is a module.exports object that sets a specific rule that says for every JS file, babel loader should run the code through plugins and give it back to webpack in its converted state to be bundled like normal.

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