Skip to content

Introduce "bundler" feature flag#358

Merged
devongovett merged 1 commit intoparcel-bundler:masterfrom
chinedufn:feature-flag-bundler
Dec 14, 2022
Merged

Introduce "bundler" feature flag#358
devongovett merged 1 commit intoparcel-bundler:masterfrom
chinedufn:feature-flag-bundler

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

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.

2 participants