Tag

virtual modules

0 views collected around this technical thread.

Tencent Cloud Developer
Tencent Cloud Developer
Sep 2, 2022 · Frontend Development

Understanding Vite's Dependency Scanning and Pre‑Bundling Process

Vite improves dev‑server startup and runtime speed by scanning every project HTML file (excluding node_modules) with an esbuild plugin that traverses the module graph, classifies JavaScript, assets, bare imports and framework files, creates virtual modules, and records each bare import’s actual path for pre‑bundling.

JavaScriptPre‑bundlingVite
0 likes · 18 min read
Understanding Vite's Dependency Scanning and Pre‑Bundling Process
ByteDance Terminal Technology
ByteDance Terminal Technology
Jan 21, 2022 · Frontend Development

Building a Universal Bundler with esbuild: Architecture, Plugin System, and Browser Adaptation

This article explores the architecture and implementation of a universal bundler based on esbuild, detailing its plugin system, virtual module capabilities, and strategies for adapting bundling processes to browser environments while addressing CommonJS compatibility, file system abstraction, and performance optimization.

BundlerCommonJS compatibilityesbuild
0 likes · 25 min read
Building a Universal Bundler with esbuild: Architecture, Plugin System, and Browser Adaptation