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:
- The component-index.json is pre-generated during build and served as a static asset
- The server route with prepareComponentIndex is only needed for dev mode regeneration
- 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