How are ES Modules different from CommonJS modules?
the syntax is the main difference, and the way we import and export them(import vs require etc etc)
also the internal workings are different
import: import { export1 } from “module-name”;
require: const config = require(‘/path/to/file’);
What kind of modules can Webpack support?
the es6-modules and the common js modules