Use when understanding the build system, modifying CLI commands, working with isobuild, or navigating the tools/ directory. Covers build pipeline flow and file locations.
Meteor's build system (Isobuild) and CLI structure.
Meteor is a full-stack JavaScript platform with:
/packages/tools/isobuild/tools/clitools/cli/main.js) → parses commandsproject-context.js) → resolves packages, dependenciestools/isobuild/)
bundler.js) → orchestrates buildcompiler.js) → compiles packageslinker.js) → wraps modulesstar.json, programstools/runners/) → run-app.js, run-mongo.js, run-hmr.jstools/
├── cli/ # Command-line interface
├── isobuild/ # Build system core
├── packaging/ # Package management
├── runners/ # App execution engines
├── fs/ # File system utilities
├── cordova/ # Mobile/Cordova support
├── static-assets/ # Project templates
└── project-context.js # Dependency resolution
tools/cli/)| File | Description |
|---|---|
main.js | Entry point, command dispatcher |
commands.js | Main command implementations |
commands-packages.js | Package management commands |
commands-cordova.js | Cordova/mobile commands |
Commands: meteor create, run, build, deploy, add/remove, mongo, shell
tools/isobuild/)| File | Description |
|---|---|
bundler.js | High-level bundling orchestration |
compiler.js | Package compilation |
linker.js | Module wrapping and linking |
import-scanner.ts | Import statement parsing |
compiler-plugin.js | Compiler plugin API |
isopack.js | Package format handling |
tools/runners/)| File | Description |
|---|---|
run-app.js | Web application runner |
run-mongo.js | MongoDB server runner |
run-hmr.js | Hot module reload runner |
run-all.js | Multi-runner orchestration |
| Target | Description |
|---|---|
web.browser | Modern browsers |
web.browser.legacy | Legacy browsers (IE11) |
web.cordova | Cordova mobile apps |
server | Node.js server |
tools-core → rspack, future integrationsaccounts-base → all accounts-* packagesddp-server + ddp-client → realtime communicationmongo → minimongo (client-side)webapp → all HTTP handlingVia meteor create --<template>: react, vue, svelte, angular, blaze, typescript, tailwind, solid, apollo, minimal, bare, full
| Variable | Purpose |
|---|---|
METEOR_PROFILE | Build profiling |
METEOR_PACKAGE_DIRS | Additional package paths |
METEOR_DEBUG_BUILD | Verbose build output |
package.js name, run meteor resetarchMatching, file extensions.meteor/local/, run meteor npm install