Skip to content
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

Introduce "bundler" feature flag #358

Merged
merged 1 commit into from
Dec 14, 2022

Conversation

chinedufn
Copy link
Contributor

This commit adds a "bundler" feature flag to the lightningcss crate.

We put the "dashmap" and "rayon" dependencies behind this new flag.

Users that do not need the bundler can now disable the feature to save
on compile time.

Related: #357

@@ -26,6 +26,14 @@ name = "lightningcss"
path = "src/lib.rs"
crate-type = ["rlib"]

[features]
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved the feature flags up since they're commonly found above the dependencies section.
When evaluating a crate I find it nice to be able to quickly see what features I can turn off.

Happy to move them back if you prefer!

This commit adds a "bundler" feature flag to the lightningcss crate.

We put the "dashmap" and "rayon" dependencies behind this new flag.

Users that do not need the bundler can now disable the feature to save
on compile time.

Related: parcel-bundler#357
@devongovett devongovett merged commit aa16117 into parcel-bundler:master Dec 14, 2022
@chinedufn chinedufn deleted the feature-flag-bundler branch December 14, 2022 11:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants