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 disableBuiltinTransformsForInternalTesting is on,@swc/core processes an abstract class, it removes the abstract declaration of the class, but the abstract of the field remains, resulting in a syntax error
The abstract of the class should not be removed, otherwise it will cause syntax errors
Actual behavior
The abstract of the class was removed, and a syntax error occurred.
Version
1.7.4
Additional context
I added disableBuiltinTransformsForInternalTesting because I want my custom swc-loader to keep the source code as similar as possible after processing tsx/jsx, for example, tags are not converted to function form. The purpose is not to affect other people's swc-loader or plugins
The content you are editing has changed. Please copy your edits and refresh the page.
This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.
Describe the bug
When disableBuiltinTransformsForInternalTesting is on,@swc/core processes an abstract class, it removes the abstract declaration of the class, but the abstract of the field remains, resulting in a syntax error
Input code
Config
Playground link (or link to the minimal reproduction)
https://play.swc.rs/?version=1.7.4&code=H4sIAAAAAAAAA0utKMgvKlFISU1LLM0pUUhMKi4pSkwuUUjOSSwuVggoSk3JTC7JL1Ko5lJASMaXVBakWikAeZl56dZctVwAIiWcUEYAAAA%3D&config=H4sIAAAAAAAAA1WMQQqDQAxF955iyNoTdOmi0L0XSDUtKWMckgiKeHdTS4vd5b9H3lqlBC%2Fr4JLWOGMUVCP97SC2iOMcBHwpZJ1ycai%2F1u2tXCc6yPYRQHMh5YHiNZ9jPRveMzUTZ2dpFcUeow52HfUmTiqYW7JQz79qdZS3Hb53%2FwKvAAAA
SWC Info output
No response
Expected behavior
The abstract of the class should not be removed, otherwise it will cause syntax errors
Actual behavior
The abstract of the class was removed, and a syntax error occurred.
Version
1.7.4
Additional context
I added disableBuiltinTransformsForInternalTesting because I want my custom swc-loader to keep the source code as similar as possible after processing tsx/jsx, for example, tags are not converted to function form. The purpose is not to affect other people's swc-loader or plugins
Tasks
The text was updated successfully, but these errors were encountered: