Tag

ES Modules

1 views collected around this technical thread.

Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Mar 21, 2024 · Frontend Development

Why Vite Is Faster Than Webpack: Development Mode, ES Modules, and Underlying Language Differences

This article explains why Vite outperforms Webpack by using a different development mode, leveraging native ES Modules, employing the high‑performance esbuild written in Go, and optimizing hot‑module replacement, making it especially advantageous for large frontend projects.

BundlerES Modulesdevelopment
0 likes · 6 min read
Why Vite Is Faster Than Webpack: Development Mode, ES Modules, and Underlying Language Differences
ByteFE
ByteFE
Mar 2, 2022 · Frontend Development

Implementing Inline Import for ES Modules Using Blob and ImportMap

The article explains how to overcome the limitation of browser ES Modules by creating inline‑import functionality with Blob URLs and dynamic import maps, providing both dynamic and static import capabilities for modular JavaScript in playground‑style environments.

ES ModulesImportMapblob
0 likes · 7 min read
Implementing Inline Import for ES Modules Using Blob and ImportMap
Beike Product & Technology
Beike Product & Technology
Jan 27, 2022 · Frontend Development

Understanding Vite: Architecture, Plugin Mechanism, and Development Workflow

This article explains how Vite leverages native ES modules, esbuild pre‑bundling, and a flexible plugin system to provide instant dev‑server startup, fast hot‑module replacement, and efficient dependency handling, contrasting its approach with traditional bundlers like webpack.

Dependency Pre-bundlingES ModulesFrontend Development
0 likes · 17 min read
Understanding Vite: Architecture, Plugin Mechanism, and Development Workflow
360 Tech Engineering
360 Tech Engineering
Mar 19, 2019 · Backend Development

Understanding Node.js ES Modules and CommonJS Interoperability

This article explains how Node.js supports ES modules since version 8.5, compares CommonJS and ES module loading behaviors, demonstrates interoperability techniques with code examples, and outlines the practical implications of using the experimental‑modules flag for backend development.

Backend DevelopmentCommonJSES Modules
0 likes · 8 min read
Understanding Node.js ES Modules and CommonJS Interoperability
JD Tech
JD Tech
Mar 5, 2019 · Frontend Development

Optimizing Taro H5 Bundle Size with Tree Shaking and ES Module Refactoring

This article explains how Taro's H5 build size was dramatically reduced by applying dead‑code elimination, configuring sideEffects, converting component and API packages to ES modules, and using webpack's tree‑shaking together with a custom Babel plugin to replace default imports with named imports.

Babel PluginDead Code EliminationES Modules
0 likes · 11 min read
Optimizing Taro H5 Bundle Size with Tree Shaking and ES Module Refactoring