You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When an error is thrown from a class constructor, the name in the stack frame should read "new NameOfTheClass". SWC is not able to restore these names with sourcemaps. Constructor-less classes will have no mapped name as well. Classes with constructors will use the generic constructor name instead.
Describe the bug
When an error is thrown from a class constructor, the name in the stack frame should read "new NameOfTheClass". SWC is not able to restore these names with sourcemaps. Constructor-less classes will have no mapped name as well. Classes with constructors will use the generic
constructor
name instead.Input code
Config
Playground link (or link to the minimal reproduction)
https://github.com/eps1lon/sourcemapped-stackframes-playground#-class-component
SWC Info output
Expected behavior
Stack of the original code
Actual behavior
Stack when the generated code is run with
--enable-source-maps
Version
1.9.2-nightly-20241111.1
Additional context
No response
The text was updated successfully, but these errors were encountered: