Skip to content

vue-component-meta and TypeScript compiler bundled into production SSR output #127

@fago

Description

@fago

The prepareComponentIndex server route imports vue-component-meta (which depends on the full TypeScript compiler, ~8.7 MB) via dynamic import().

This is not really necessary because:

  1. The component-index.json is pre-generated during build and served as a static asset
  2. The server route with prepareComponentIndex is only needed for dev mode regeneration
  3. Even when the endpoint is used at runtime, it should gracefully handle missing TypeScript

Impact:

  • The node-server preset ships TypeScript in .output/server/node_modules/ (13 MB) even though it's never used at runtime

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions