Skip to content

feat(dev-server): prebundle for dev-startup speed #152

Description

@lukekania

Goal

Honor the prebundle option that controls esbuild's dependency pre-bundling. Today ngc-rs's npm-resolver does its own per-build bundling; this option would let users opt out of that per-package, or add specific packages to a force-prebundle list.

Current state

Silently dropped. Impact is dev-startup latency only — a fully bundled app is correct, just slower to first build.

Scope

  • packages/builder/schemas/dev-server.json: add prebundle shaped like Angular's (true/false or { exclude: string[] }).
  • crates/npm-resolver/: when exclude is set, those packages get re-resolved on every build instead of cached. When prebundle: false, disable the npm-resolver's caching layer entirely.

Definition of done

  • A package listed in exclude reflects edits made directly inside node_modules/<pkg> without restarting the dev server.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestparity:nice-to-haveDefer to post-1.0 unless someone explicitly needs it.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions