Private Fields Not Inspectable In Chrome Dev Tools #11438
Labels
i: out of scope
Feature requests which don't fit the scope of @babeljs, e.g. ideas for new third-party plugins
i: question
outdated
A closed issue/PR that is archived due to age. Recommended to make a new issue
Bug Report
Current Behavior
I am using
@babel/plugin-proposal-class-properties
and@babel/plugin-proposal-private-methods
with webpack to create and use private class fields. Everything transformes correctly and the website works as expected. But when i put a breakpoint in chrome and try to inspect the value (within the class and within scope of course), chrome doesn't seem to recognise the variable.I am not sure if this is a babel issue, a sourcemaps issue, or webpack issue, or chrome issue, i am just hoping to start here and see where it goes. Not sure if this is expected or there is a work around? Looking for some guidance please.
I did check and you can inspect native private fields in Chrome, though i understand this is not quite the same.
Input Code
Expected behavior/code
You should be able to inspect the private variable within the scope of the class
Babel Configuration (webpack.config.js)
Environment
loader
]Additional context/Screenshots
this.#welcomeText
is not inspectable in current scopePrivate fields runing natively in Chrome
The text was updated successfully, but these errors were encountered: