Skip to content

Conversation

@pcfreak30
Copy link
Contributor

@pcfreak30 pcfreak30 commented Oct 29, 2025

  • Added bundleAllCSS option to ModuleFederationOptions and NormalizedModuleFederationOptions interfaces
  • Updated manifest plugin to conditionally include all CSS assets in exports based on bundleAllCSS setting
  • Added tests to verify default and explicit bundleAllCSS option behavior
  • Updated cssModuleHelpers.test.ts to import normalizeModuleFederationOptions and mock bundleAllCSS option
  • Added new test suite in cssModuleHelpers.test.ts to validate bundleAllCSS option handling
  • Updated normalizeModuleFederationOption.test.ts to include bundleAllCSS, getPublicPath, and publicPath in expected default values

Close #337

@pcfreak30
Copy link
Contributor Author

@gioboa please review.

Copy link
Collaborator

@gioboa gioboa left a comment

Choose a reason for hiding this comment

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

Nice, can you add the documentation for this prop in the README please?

@pcfreak30
Copy link
Contributor Author

Nice, can you add the documentation for this prop in the README please?

done

@pcfreak30 pcfreak30 marked this pull request as ready for review October 29, 2025 10:28
…exposed modules

* Added `bundleAllCSS` option to `ModuleFederationOptions` and `NormalizedModuleFederationOptions` interfaces
* Updated manifest plugin to conditionally include all CSS assets in exports based on `bundleAllCSS` setting
* Added tests to verify default and explicit `bundleAllCSS` option behavior
* Updated `cssModuleHelpers.test.ts` to import `normalizeModuleFederationOptions` and mock `bundleAllCSS` option
* Added new test suite in `cssModuleHelpers.test.ts` to validate `bundleAllCSS` option handling
* Updated `normalizeModuleFederationOption.test.ts` to include `bundleAllCSS`, `getPublicPath`, and `publicPath` in expected default values
@pcfreak30
Copy link
Contributor Author

@gioboa tests are passing now.

Copy link
Collaborator

@gioboa gioboa left a comment

Choose a reason for hiding this comment

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

Thanks for this @pcfreak30 💪

@gioboa gioboa merged commit 03e5576 into module-federation:main Oct 29, 2025
4 checks passed
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.

[Bug]: CSS exposure changed from component-scoped to project-wide

2 participants