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
Hey, I was trying out @swc/plugin-styled-components, but compiled output with selected target es2020 doesn't remove comments and white spaces. Here is repo with reproduction.
For input, I used input from tests and output is like this. Comments are still presented and output inside template literals is not minified.
How to reproduce
Clone repro
yarn install
yarn run compile
The text was updated successfully, but these errors were encountered:
This implements `minify` option in styled-components plugin. The
minification algorithm and unit tests are ported from
`babel-plugin-styled-components`.
Note that CSS code in helper functions (`keyframes`, `css`, etc.) are
currently not always processed. I think there is a bug in `is_helper`
function, so I'll fix it in another pull request later.
fixes#143
cf. vercel/next.js#30802
Hey, I was trying out
@swc/plugin-styled-components
, but compiled output with selected targetes2020
doesn't remove comments and white spaces. Here is repo with reproduction.For input, I used input from tests and output is like this. Comments are still presented and output inside template literals is not minified.
How to reproduce
yarn install
yarn run compile
The text was updated successfully, but these errors were encountered: