Subresource Integrity support for Module Federation plugin chunks

See original GitHub issue

Hello! 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:open
  • Created a year ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
jscheidcommented, Mar 26, 2022

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.

0reactions
dmialeshkacommented, Sep 5, 2022

bump

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found