Tag

Pre‑bundling

0 views collected around this technical thread.

Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Jun 30, 2024 · Frontend Development

Understanding Vite’s Development Server Architecture and Pre‑bundling Mechanism

This article explains how Vite achieves fast development by serving ES modules directly, using a connect‑based dev server with plugin‑driven transforms, pre‑bundling dependencies via esbuild, generating hash‑based cache keys, and reusing the same plugins in Rollup for production builds.

Dev ServerHot Module ReplacementJavaScript
0 likes · 9 min read
Understanding Vite’s Development Server Architecture and Pre‑bundling Mechanism
IT Services Circle
IT Services Circle
Mar 29, 2024 · Frontend Development

Understanding Vite’s Development Server Architecture and Pre‑bundling Mechanism

Vite accelerates development by serving unbundled ES modules directly to the browser, using a connect‑based dev server that compiles on‑demand, leverages esbuild for fast pre‑bundling of dependencies, generates hash‑based cache queries, and shares plugins with Rollup for consistent production builds.

Build ToolsDev ServerFrontend Development
0 likes · 9 min read
Understanding Vite’s Development Server Architecture and Pre‑bundling Mechanism
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Dec 12, 2023 · Frontend Development

Deep Dive into Vite's Dependency Pre‑Bundling Process

This article explains why Vite is faster than bundlers like Webpack, introduces the concept of dependency pre‑bundling, walks through its implementation using esbuild plugins, and shows how to build a simplified custom Vite server that scans, resolves, and pre‑bundles third‑party modules.

Build ToolsJavaScriptPre‑bundling
0 likes · 35 min read
Deep Dive into Vite's Dependency Pre‑Bundling Process
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Nov 28, 2022 · Frontend Development

Understanding Vite’s Core Design and Implementation: Server Startup, Pre‑bundling, and HMR

This article explores Vite’s evolution and core architecture, detailing how it improves development server startup time, performs dependency pre‑bundling with esbuild, creates the dev server, handles HTML injection, and implements fast hot‑module replacement through WebSocket communication.

Build ToolsESMFrontend Development
0 likes · 12 min read
Understanding Vite’s Core Design and Implementation: Server Startup, Pre‑bundling, and HMR
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‑bundlingdependency scanning
0 likes · 18 min read
Understanding Vite's Dependency Scanning and Pre‑Bundling Process