Skip to main content

Bundler

The bundler is responsible for combining packages and application code into deployable bundles for different architectures.

Bundle Format

Meteor creates site archives (.star files) with this structure:

star.json

Main Entry Point

Target Architecture

The bundler creates different targets for different platforms:

ClientTarget (Web)

Server Target

Server targets use the JsImage format:

Web Program Format

Build Process

The make() method orchestrates the entire build:

Load Order Determination

The bundler uses a two-phase topological sort:

File Management

The bundler uses a File class to represent resources:

Cache Busting

Source Map Rewriting

Minification

Node Modules Handling

Ignored Files

Profiling

Key methods are profiled for performance analysis: