Babel Flashcards

1
Q

What is Babel?

A

Babel is a compiler that is mainly used to convert ES6 code into ES5 JavaScript so it can be read in current and older browsers

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

What is a Plug-in?

A

a software component 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

Loaders are transformations that are applied to the source code of a module.

allow webpack to process other types of files and convert them into valid modules that can be consumed by your application and added to the dependency graph.

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

by adding babel-loader to the list of modules in webpack.config
Install a babel-loader as a devDependency
You configure webpack to specify which files you want Babel to transpile before webpack compiles all your files

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