Module System

Noun · Development

Definitions

  1. The language-level mechanism for organizing code into self-contained units with explicit imports and exports — examples include ES Modules (import/export), CommonJS (require/module.exports), Python packages, and Rust crates — providing encapsulation, namespace isolation, and dependency management.

    In plain English: The rules a programming language provides for splitting code into separate files and controlling what each file shares with others.

    Example: "We're migrating from CommonJS to the ES module system so we can take advantage of static analysis and tree-shaking."

Related Terms