Excited to announce that Parcel CSS is now Lightning CSS! โก๏ธ
This new name makes it clear that it can be used outside Parcel, with other build tools or standalone.
Had way too much fun designing the new website too! ๐ lightningcss.dev
Follow @lightningcss for updates.
Parcel CSS v1.13.0 is out!
Unknown at-rules and selectors are now preserved, with a warning instead of an error. This should allow using experimental browser features without waiting for Parcel CSS to implement them.
A few other features + bug fixes too: github.com/parcel-bundler/paโฆ
Just released @parcel/css v1.12.0! ๐
๐ More math functions: trig, exponential, and sign
โพ Numeric constants: e, pi, infinity, and nan
๐ฅก Container query minification
โ ๏ธ New error recovery mode for invalid syntax
๐บ Merge media and supports rules
github.com/parcel-bundler/paโฆ
ALT Example code with a container query containing a calculated width using the sin function and pi constant. Output is minified, with a calculated px value, and container shorthand.
Parcel v2.6.1 is out! It includes bug fixes for JS compilation, Node ESM, web extensions, browser caching, and more. Have a great weekend! ๐
github.com/parcel-bundler/paโฆ
Just shipped Parcel CSS v1.10.0! ๐
๐ Improves merging of adjacent style rules.
๐พ Exposes new CSS modules features to the CLI.
๐ Enables the CLI to output both code and exports for CSS modules as JSON to stdout.
๐ชฒ Fixes a bunch of bugs.
Enjoy! ๐ฅณ
github.com/parcel-bundler/paโฆ
Parcel now has an overlay for React runtime errors similar to the one for build errors, using the same battle-tested package as Create React App! You get beautiful code frames and error stacks, and can even click to open your editor right to the line and column of the error. ๐
ALT A screenshot of a browser displaying an error in a React application. Includes a code frame with the error location.
Parcel can now locally scope CSS variables just like class names. This avoids clashes between variables in different files, and enables automatic tree shaking of unused vars! ๐
There's a new syntax for referencing variables across files that makes dependencies explicit, too.
ALT A code example showing two files: button.module.css, which references a variable in vars.module.css. The compiled output shows that the variables have been renamed, and unused vars have been tree shaken.
Just released some updates to Parcel CSS, including some new features for the Rust API! ๐
๐๏ธ Beginnings of support for the CSSOM API.
๐ Ability to retrieve source locations for properties.
๐จ Serde support to allow serializing the AST to and from JSON and other formats.
Happy Saturday! Just published Parcel CSS v1.8.2! ๐ Includes a few bug fixes for minification of borders ๐ผ, calc simplification ๐งฎ, media queries ๐ธ, and url() quoting ๐. Also an upgrade to napi-rs v2 ๐ฆ. Enjoy! ๐ฅณ
github.com/parcel-bundler/paโฆ
Parcel v2.5.0 is out! ๐
๐งฉ Web Extension manifest v3 support (contributed by @arjunbarrett!)
๐ข Support for __dirname and __filename in Node.js targets (contributed by @lekoarts_de of @GatsbyJS!)
๐ `in` expressions with process.env (contributed by @Shinyaigeek!)
๐ Bug fixes
Did you know Parcel has first-class support for building Web Extensions? Use a manifest.json file as an entry, and Parcel will follow all of the dependencies from there. It supports hot reloading, style injection, service workers, and more!
parceljs.org/recipes/web-extโฆ
This release also includes updates to SWC and Parcel CSS, bug fixes for scope hoisting, improved code frames with JSON 5, and more. Check out the full release notes for details! ๐ฅณ
github.com/parcel-bundler/paโฆ
Took a bunch of time and wrote Rust docs for Parcel CSS! There are docs for every single CSS rule, property, and value, along with API examples.
If you have ever wanted to manipulate CSS in a highly structured way just like a browser, check it out! ๐
docs.rs/parcel_css