Tagged articles
module loading
17 articles · Page 1 of 1
This article dissects Vite’s fast development workflow by detailing how it rewrites bare module imports, resolves dependencies from node_modules, parses Vue single‑file components into template, script, and style sections, compiles them, and dynamically injects the resulting code for seamless browser execution.
ESMFrontend DevelopmentVite
0 likes · 12 min read

This article explains how Import Maps let browsers understand bare module specifiers, offering a native alternative to traditional bundlers like Webpack, while still acknowledging the essential roles of build tools in transpilation, optimization, and resource processing.
Build ToolsImport MapsJavaScript
0 likes · 6 min read

This article reviews several upcoming JavaScript proposals—including the Stage 2.7 Error.isError method, the sandboxing ShadowRealm API, the import‑defer syntax for lazy module loading, as well as Iterator.zip, Iterator.concat, and Math.sumPrecise—detailing their motivations, usage examples, and potential impact on web and Node.js development.
ECMAScript proposalsJavaScriptShadowRealm
0 likes · 11 min read

The article describes how a monolithic supply‑chain front‑end was refactored into a micro‑frontend architecture based on Single‑SPA, detailing the background problems, requirements, technical selection, system design, service discovery, module loading, message bus, data sharing, build and deployment, and the resulting performance improvements.
Frontend ArchitectureReduxmicro-frontend
0 likes · 13 min read

The article explores the motivations behind mini programs, micro‑frontends, and module loading, comparing their technical advantages, business implications, and ecosystem challenges while questioning whether these solutions truly address core problems or merely serve as market‑driven silver bullets.
frontendmicro-frontendmini-program
0 likes · 19 min read

The article dissects Node.js v17’s source to reveal how the CommonJS `require` system is bootstrapped, how native modules are loaded, how `Module._load` resolves, caches, and executes user files, and how the overall CJS loading pipeline operates step‑by‑step.
BackendCJSNode.js
0 likes · 15 min read

This article explains how to customize Metro bundler to support dynamic imports in React Native, detailing a split‑and‑combine build process that isolates async modules, deduplicates code, and loads bundles on demand, thereby shrinking app size and avoiding the drawbacks of multi‑business package architectures.
Bundle OptimizationCode SplittingJavaScript
0 likes · 14 min read

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.
Circular DependencyESModuleFront-end
0 likes · 10 min read

This article examines the evolution of web resource loading—from script tags and CDN combos to CommonJS, AMD, bundlers, and bundless approaches—then compares Alibaba's Tianma seed module specification with the emerging import‑maps standard, highlighting their setups, limitations, and performance implications.
Import MapsWeb Performancemodule loading
0 likes · 16 min read

This article examines Alibaba's Tianma "seed" module specification, compares it with the emerging import‑maps standard, and discusses their impact on web performance, dependency management, and future front‑end architecture.
Import Mapsmodule loadingseed spec
0 likes · 13 min read

This article explains how to dynamically load and execute a CommonJS‑style JavaScript module in a browser by reproducing Node's internal Module._compile workflow, creating a sandbox with with, Proxy, and Symbol.unscopables, and providing a complete ES6 class implementation with examples.
Node.jsdynamic importmodule loading
0 likes · 11 min read

Explore eight distinct methods for importing Python modules—from the simple 'import' statement to advanced techniques like __import__, importlib, imp, execfile, exec, the import_from_github_com package, and custom remote importers—providing practical code examples and guidance for both everyday developers and framework creators.
Pythondynamic importimport
0 likes · 10 min read

This article explores the evolution of frontend build tools, examines the opportunities and challenges of moving to a browser‑based, bundless workflow, and presents the Gravity architecture—including its plugin system, compilation chain, in‑browser file system, and service‑oriented package management—as a vision for the future of lightweight, cloud‑ready development.
Build ToolsPlugin Architecturebundless
0 likes · 18 min read

Node.js 13.2.0 removes the experimental flag, making ES module support stable and defining clear rules—file extensions, package.json type fields, and runtime flags—to decide whether a file is loaded as an ES module or a CommonJS module.
CommonJSES ModulesNode.js
0 likes · 3 min read

This article explains Node.js's CommonJS module system, covering how require loads modules, the role of module.exports versus exports, module classification, loading order, caching behavior, circular dependencies, and provides practical code examples for interview preparation.
CommonJSExportsNode.js
0 likes · 10 min read

LsLoader is a middleware that caches individual JavaScript modules in browser localStorage and combines updates via an online combo service, enabling build‑tool‑agnostic, fine‑grained loading that cuts page load times by up to 30 % and saves hundreds of gigabytes of bandwidth in production.
CachingFront-endJavaScript
0 likes · 13 min read

SeaJS is a CMD‑compliant JavaScript module loader that enables modular development across all major browsers, and this guide walks you through initializing modules, defining them with the `define` function, understanding factory parameters, and using absolute, relative, and base‑path addressing for seamless module management.
JavaScriptSeaJScmd
0 likes · 3 min read
