Replies: 1 comment
|
The panel reads Ran into the same wall and ended up porting that transform to an SWC plugin, so it runs under Turbopack and webpack: https://github.com/thedv91/swc-plugin-jsx-source-attrs // next.config.ts
experimental: {
swcPlugins: [["swc-plugin-jsx-source-attrs", { "source-path-attr": "data-tsd-source" }]],
}That gets you Fair warning though: I've only checked that the attribute itself comes out right, I haven't wired the panel up against it. If the inspector wants the value in some other shape I'd want to know. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I'm trying to use the devtools with NextJS, but haven't been able to figure it out.
The farthest I got was showing the inspector UI when using the key shortcut, but it shows the name of the parent folder rather than
the actual file, and clicking it obviously does nothing:
All reactions