es6-modules Flashcards
1
Q
How are ES Modules different from CommonJS modules?
A
Their syntax is even more compact than CommonJS’s.
Their structure can be statically analyzed (for static checking, optimization, etc.).
Their support for cyclic dependencies is better than CommonJS’s.
2
Q
What kind of modules can Webpack support?
A
Named exports
Default exports