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
* Introduce "visitor" feature flag
This commit adds a "visitor" feature flag to the lightningcss crate.
This feature flag controls whether or not the `Visitor` trait gets
compiled. The "visitor" flag is disabled by default.
Disabling the "visitor" feature disables the `lightningcss-derive`
dependency.
This commit on its own reduces the lightningcss crate's build time by
about 8% (as measured by comparing `cargo build --timings` with and
without the "visitor" feature enabled.
When combined with some of the other soon to land commits, this commit
will make it possible to remove `syn` from the dependency tree when you
don't need it, which should lead to substantial compile time savings.
Related: parcel-bundler#357
* Specify required features for examples
Co-authored-by: Devon Govett <devongovett@gmail.com>
0 commit comments