Subresource Integrity support for Module Federation plugin chunks
See original GitHub issueHello!
I use webpack-subresource-integrity plugin together with webpack module federation and it throws an error during build process ERROR 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.
Issue Analytics
- State:
- Created a year ago
- Comments:5
Top Results From Across the Web
Add Subresource Integrity support for ModuleFederation #14310
I would like to have the ability to use SRI (via plugin or some flag ... Subresource Integrity support for Module Federation plugin...
Read more >Server-side rendering tactics for federated applications
What are the available techniques for SSR applications powered by Module Federation? There are a few to choose from, let's list them.
Read more >webpack-subresource-integrity - npm
A Webpack plugin for ensuring subresource integrity. Integrity is ensured automatically for lazy-loaded chunks (loaded via require.ensure ) on ...
Read more >ModuleFederationPlugin - webpack
runtime. Create a new runtime chunk with the specified name. webpack.config.js const { ModuleFederationPlugin } ...
Read more >webpack/webpack - Gitter
Is there a complete callback in a webpack config, or plugin? ... Hi all, I have a quick question on module federation I...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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
hashLoading: "lazy"). That would be useful for #167 as well.Happy to take a look when I can find some time, in the meantime a PR for this is welcome.
bump