swc-project / swc

Rust-based platform for the Web
https://swc.rs
Apache License 2.0
30.91k stars 1.21k forks source link

`@swc/css` exports CSS parser API #6742

Open sosukesuzuki opened 1 year ago

sosukesuzuki commented 1 year ago

Describe the feature

@swc/css is a Node.js binding for SWC CSS features. It privides only APIs for minification.

If it provides a parser API, it would be good for Node.js tools that want to use the CSS parser.

Babel plugin or link to the feature description

N/A

Additional context

I'm personally considering the possibility of migrating the CSS parser used by Prettier from postcss to SWC.

g-plane commented 1 year ago