Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Related issue (if exists)
closes #2919
Summary
馃 Generated by Copilot at 7fa32b8
This pull request adds css support as an experimental option for the rspack bundler. It modifies the TypeScript and Rust code in
rspack
,rspack_binding_options
, andrspack_core
to handle the new option. It also updates the unit test file to cover the new feature.Walkthrough
馃 Generated by Copilot at 7fa32b8
css
field to theExperiments
interface and struct in TypeScript and Rust, respectively, to indicate whether to enable the css support feature for the rspack bundler (link, link, link)css
field to theRawExperiments
struct in Rust, which mirrors theExperiments
field and is used for the conversion between TypeScript and Rust options (link, link, link)css
field in thegetRawExperiments
andapplyExperimentsDefaults
functions in TypeScript, respectively (link, link)applyModuleDefaults
function in TypeScript, which adds a rule for handling css files and css modules to the module rules array if thecss
field istrue
(link, link, link)Defaults.unittest.ts
in TypeScript, to check the default and overridden values of thecss
field and the corresponding module rules (link, link)