Next.js Discord

Discord Forum

How to not transpile private fields?

Unanswered
Cape horse mackerel posted this in #help-forum
Open in Discord
Cape horse mackerelOP
I want to keep javascript private fields in the generated code (at least in dev).

My tsconfig has target set to esnext. (I tried with es2022 and es2023 as well.)

I looked at the docs and the .d.ts files without any luck figuring this out.

Any hints?

0 Replies