Webpack-and-Babel Flashcards

1
Q

What is Webpack?

A

Webpack is a bundler that bundles all JavasScript files and npm packages into a single or fewer files by scanning through files to find an import statement to find all the modules your application uses

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

What is the advantage of using Webpack (or a similar bundler)?

A

It condenses your files by removing unused code and renames variables, functions,classes to ensure no naming conflicts.

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

What is Babel?

A

Babel is a JavaScript transpilier that converts code written in newer versions of JavaScript into older versions

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

What is the advantage of using Babel (or a similar transpiler)?

A

Allows for appilcations written in newer versions of JavaScript to run on older devices or systems

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