-
Notifications
You must be signed in to change notification settings - Fork 47
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
Subresource Integrity support for Module Federation plugin chunks #176
Comments
We could add a mechanism to pass a URL-to-hash mapping as suggested here, and bake that into entry chunks (or ideally into all chunks which will load the URL when Happy to take a look when I can find some time, in the meantime a PR for this is welcome. |
Could you provide a repro for the |
You can reproduce it here for |
Any updates on this? |
bump |
any update on this ? |
Hello, folks. I'm working at a Webpack plugin that generates a JSON stats file about module federated chunks in the application Here is my PR adding the support to SriPlugin, my intent is to generate the JSON stats file within the integrity information, but I got the error mentioned above on this thread during my builds, here is a screenshot containing the output file which contains the unresolved SRI hashes I believe we can use this approach to solve these lazy Sri Hashes:
I would appreciate it if we move this conversation forward 🚀 |
@brunos3d without being too familiar with federation in Webpack, this does sound like a workable solution. PRs are welcome. |
bump |
Bro, I have also encountered this problem. Have you solved it? |
I fixed it here #220 |
bump |
hi, I made a temporary package @sowtame/webpack-subresource-integrity, supports wmf. |
Hey @sowtame I tried using your package but I'm getting:
|
Hello!
I use
webpack-subresource-integrity
plugin together withwebpack module federation
and it throws an error during build processERROR in webpack-subresource-integrity: Asset {assetName} contains unresolved integrity placeholders
.I may be missing something in the configuration, but it seems that hashes are not resolved for chunks generated by the WMF plugin.
Refers to this issue in the webpack repo.
Any help would be greatly appreciated.
Thank you in advance.
The text was updated successfully, but these errors were encountered: