How are ES Modules different from CommonJS modules?
different syntax - use import and export; syntax is even more compact than CommonJS’s, structure can be statically analyzed, support for cyclic dependencies is better than CommonJS’s, direct support for asynchronous loading
What kind of modules can Webpack support?
ECMAScript modules, commonJS modules, AMD modules, Webassembly modules, Asset modules