Skip to content

Conversation

pcfreak30
Copy link
Contributor

@pcfreak30 pcfreak30 commented Jul 27, 2025

This is the 1st in a series of PR's im submitting thats the result of me needing to evolve the plugin to support new things.

I will also make a note here that you do NOT need to have css support likely in dev mode b/c vite seems to inline all css when reading from the js files, especially under HMR.

This commit has been in use for months by me, and im open to changes to it. It mainly exposes all css files to be put in all expose entries.

Original PR at #257
Closes #253

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 I will check it out

@pcfreak30
Copy link
Contributor Author

@gioboa have you been able to look at this at all?

@gioboa
Copy link
Collaborator

gioboa commented Aug 22, 2025

@gioboa have you been able to look at this at all?

Thanks for the ping. I look at it 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 @pcfreak30 for your help and commitment

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.

Are we closing issues with this improvement?
If yes, please add Close #issue-number-here in the description

@pcfreak30
Copy link
Contributor Author

Are we closing issues with this improvement? If yes, please add Close #issue-number-here in the description

updated.

@pcfreak30 pcfreak30 changed the title refactor: code cleanup and support for css files in manifest refactor(pluginMFManifest): improve asset tracking and manifest generation Aug 23, 2025
@pcfreak30 pcfreak30 force-pushed the css-support branch 2 times, most recently from 7465b6d to 399d662 Compare August 23, 2025 04:21
@pcfreak30 pcfreak30 changed the title refactor(pluginMFManifest): improve asset tracking and manifest generation refactor(manifest): improve asset tracking and manifest generation Aug 23, 2025
@pcfreak30
Copy link
Contributor Author

@gioboa i did a rather large refactor and moved the primary logic to src/utils/cssModuleHelpers.ts. I also created unit tests for everything, and some jsdocs.

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 great PR 👏🎉

- Extracted asset tracking logic into dedicated cssModuleHelpers utility
- Added comprehensive tests for new helper functions
- Improved manifest generation with better CSS asset handling
- Added type safety and documentation throughout
- Optimized module processing with early exit conditions
@pcfreak30
Copy link
Contributor Author

@gioboa branch updated

@gioboa gioboa merged commit 43fa399 into module-federation:main Aug 23, 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]: Shared modules should still be defined even if external
2 participants