Tagged articles
6 articles
Page 1 of 1
DaTaobao Tech
DaTaobao Tech
Aug 16, 2022 · Backend Development

Understanding esModuleInterop: CommonJS vs ES Module in TypeScript

The article explains how toggling TypeScript's esModuleInterop flag changes import behavior between CommonJS and ES Module syntax, causing runtime errors like “TPS is not a constructor,” and offers fixes—either revert the flag and use namespace imports or enable it and use default imports.

CommonJSESModuleNode.js
0 likes · 7 min read
Understanding esModuleInterop: CommonJS vs ES Module in TypeScript
DaTaobao Tech
DaTaobao Tech
Feb 28, 2022 · Frontend Development

Understanding ESModule Loading and Execution Process

ESModules load by fetching and parsing files to build a static dependency graph, then instantiate bindings before evaluating each module depth‑first, which ensures deterministic execution, enables concurrent loading and TreeShaking, and explains why circular imports can cause temporal‑dead‑zone ReferenceErrors when exported variables are accessed before initialization.

ESModuleFront-endJavaScript
0 likes · 10 min read
Understanding ESModule Loading and Execution Process
ByteDance Web Infra
ByteDance Web Infra
May 7, 2021 · Frontend Development

Understanding the ESModule Specification: Server and Browser Implementations, Third‑Party Dependency Challenges, and Next‑Generation Web App Development

This article explains the ESModule standard, compares its server‑side (Node.js) and browser implementations, discusses compatibility issues with CommonJS, examines the difficulties of using third‑party dependencies in browsers, and outlines emerging tools such as Snowpack and Vite that leverage native ESModules.

BrowserESModuleJavaScript
0 likes · 15 min read
Understanding the ESModule Specification: Server and Browser Implementations, Third‑Party Dependency Challenges, and Next‑Generation Web App Development
Alibaba Terminal Technology
Alibaba Terminal Technology
Jul 15, 2020 · Frontend Development

How Bundleless Development with ESModules Supercharges Frontend Speed

This article explains why traditional bundlers like Webpack become slower as projects grow, introduces the Bundleless approach that leverages native ESModule loading in browsers, details core techniques and Vite implementation, and shares a real‑world POS case study showing dramatic improvements in startup and HMR performance.

BundlelessESModuleHot Module Replacement
0 likes · 17 min read
How Bundleless Development with ESModules Supercharges Frontend Speed
Alibaba Cloud Developer
Alibaba Cloud Developer
Jul 9, 2020 · Frontend Development

How Bundleless Development with ESModules Boosts Frontend Speed and Efficiency

This article explains the Bundleless development approach that leverages native browser ESModules to eliminate bundling, delivering dramatically faster startup, O(1) build complexity, near‑instant hot‑module replacement, and practical implementation details using Vite, along with a real‑world POS case study and migration challenges.

BundlelessESModuleHot Module Replacement
0 likes · 16 min read
How Bundleless Development with ESModules Boosts Frontend Speed and Efficiency