-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
comment is not preserved even when the minification is not enabled #7842
Comments
Seems like this is a problem of the default config. {
"jsc": {
"parser": {
"syntax": "ecmascript",
"jsx": false
},
"target": "es2022",
},
"minify": false,
"isModule": true,
"module": {
"type": "commonjs"
}
} will preserve the comments |
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. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Describe the bug
All the comment has been stripped away even when swc minification is not enabled.
Input code
Config
Playground link
https://play.swc.rs/?version=1.3.78&code=H4sIAAAAAAAAA3VUTW%2FbMAy9%2B1dwJ6ddYu%2FjlqCnoAWCbd3QZus1skzHam3Jk%2BS2xtD%2FPlLOh920Fwt8pB7JR1rp%2BXkE57A0TWfVtvQwkWfw5dPnr7PGokPtp3AlJGbGPExhpWVC0XxhXSoHzrRWIkiTI5BZKYnaYQ6tztGCLxF%2BrNZ7GApDOCjNDqb4vlpeXt9eQqEq3MFgjfGQK4vSG9uBKQg9JvIWkQtIoyhuidF5q6SPF1HRaumV0YB147urnTU5g38v7%2FjulC9vqEHfB73tS1gCfyesVnq7FJIKvBjTLKKoNnlbYYLPjbHeUUAxSB%2FBwQRXqnrSWNO4KfBxLWqcknh1YzQJ3ZuVkYKj%2B5Crtqp63KG06HtGgEdhAa2lZBqf4NJaYyfBARAvRVVRufCL7q%2B7Bh1FVyoXJKjbSVt1PC5NUru24bJpZlkXBrDhtDPP9zbQCPkgtphADB%2F39L9J9wN1QpLIh4NJHXsDkgpgrnp07wZFDrWxCMJD6X0zT9MiS2pMaZKzwDM75o7DtbNFOKjTRJMK1G680tS7EtrDH2WqIFXcR%2FnSmieOZfOFPyx4otwN%2Fm2p7ZyuM7IYzmSL%2FpbHsheWNG6tPsQFmjSFVc0qUdYPvf0Nsek3s1LO8%2FK6Tkt4osXhueVtz%2F6I1vFJ%2Fk2SFiIsNW8Xq7XklikguXcbWuowUxJJ%2BuPgLnZVCWtFNw9VTQOQqa3SfoQYUw1t7nBo67bO0A4Rk93TKgwR%2Fp30doR0dXbk7WvRo0pCaT%2BL%2BV7JHsUKaxwXuIO4sSGstCNdJZ5QaHpUTss9CaNf522sTzTCXSlOMHwWLMIBC%2BB4q%2BfvvBzT3ca8eiJehfdbRN%2FxbJPhlMeuEL1bxNceovoPuXbVSbIFAAA%3D&config=H4sIAAAAAAAAA1WPQQrDIBBF955CZt1Fcdk79BBiTVAyKo6BSsjdq0Ztu%2FO%2Fz38yB%2BMcLCl48KM8Swgyko4zF0LZJfkuBLRCSSqakOA2Wku1WuRGuqHzaiDJuOrUViTuQvQFoHFmyb9%2BlG7d9JBMsfIYoib6t7P%2Bw9czV2Do6V97U6W4XwwH6eelHGqqdvTOElQhOz8jm7S4CAEAAA%3D%3D
Expected behavior
The comment should be left as it is unless the minification is enabled.
Actual behavior
No response
Version
1.3.78
Additional context
No response
The text was updated successfully, but these errors were encountered: