ES6 MODULES Flashcards

1
Q

How are ES Modules different from CommonJS modules?

A

Syntax is more compact , strucutre can be analyzed, support for cyclic dependencies is better than commonJS,
Syntax is different import/export declarative
ecma is official, commonJS is community

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

What kind of modules can Webpack support?

A

ECMA, CommonJS, AMD asynchronous module

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