ECMA Script Modules
Import/Export Syntax
When targeting modern browsers, ESM is natively supported by the vast majority of browsers. Does this mean we no longer need bundlers?
Not quite. Since import/export statements can be statically analyzed, bundlers can analyze the code and optimize it by removing unused exports through tree-shaking.
Three Core Capabilities
- Independent scope isolation
- Selective module consumption
- Streamlined dependency management

Seonglae Cho