ESM

Creator
Creator
Seonglae ChoSeonglae Cho
Created
Created
2020 Aug 21 2:52
Editor
Edited
Edited
2025 Nov 14 19:49
Refs
Refs

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

  1. Independent scope isolation
  1. Selective module consumption
  1. Streamlined dependency management
 
 
 
 
 
 

 

Backlinks

<script> type

Recommendations