ECMAScript Modules (ESM) provide the official standard format to package JavaScript code for reuse. ESM allows for static analysis, enabling optimizations like tree-shaking.
Named Exports
Named exports allow a module to share multiple functions or variables. You must import them using the exact same name (or alias them).