Skip to content

Next.js + Turbopack: React Component Annotation #19319

Description

@FabianKoder

Problem Statement

In the original Turbopack support tracking issue (JS-34) 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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions