es6-modules Flashcards
1
Q
How are ES Modules different from CommonJS modules?
A
- ES modules syntax is more compact than CommonJS
- CommonJS is designed for synchronous loading and ES modules can be statically analyzed.
2
Q
What kind of modules can Webpack support?
A
- ECMAScript modules
- CommonJS modules
- AMD modules
- Assets
- WebAssembly modules