Skip to content

Next.js + Turbopack: React Component Annotation #19319

@FabianKoder

Description

@FabianKoder

Problem Statement

In the original Turbopack support tracking issue (#8105) React Component Annotation was already mentioned to be "likely not [...] possible for the forseeable future", but as far as I have seen there is no public tracking issue anymore since the original has been closed. The debug IDs have already landed and had a separate issue.

So the question now basically is, are we still waiting on anything Turbopack related? Otherwise maybe directly utilizing a webpack loader may be possible, since Turbopack supports those (with a few exceptions) and the component annotation seems to be a loader anyway.

Solution Brainstorm

  • Check if Turbopack has a "native" way of doing what the webpack version of React Component Annotation does
  • If (still) no: What feature would need to be in Turbopack to support this?
  • Alternative: Inject Webpack Loader

Additional Context

No response

Priority

React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding +1 or me too, to help us triage it.

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions