Skip to content
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

Webpack 4 Support #7

Open
royprigat opened this issue Apr 12, 2021 · 1 comment
Open

Webpack 4 Support #7

royprigat opened this issue Apr 12, 2021 · 1 comment

Comments

@royprigat
Copy link

Hi,

I am attempting to use the Webpack plugin 'ExposeRuntimeCssAssetsPlugin' with Webpack version 4.44.2, but it seems to only be working with Webpack 5.

Here is the error I get:
Error: Cannot find module 'webpack/lib/RuntimeModule'
Require stack:

  • C:\Users\rprigat\workspace\ibi-studio-connectivity\node_modules\single-spa-css\ExposeRuntimeCssAssetsPlugin.cjs

Any way to make this work with Webpack 4?

Thanks

@joeldenning
Copy link
Member

Hi @royprigat, this is a known limitation of single-spa-css - I authored it for webpack 5 with the intention of coming back to it for webpack 4. This plugin is tied a lot to html-webpack-plugin, which was mostly rewritten for webpack 5. So it's not a simple fix to get single-spa-css to work with webpack 4 - requires a fully separate implementation.

My intention with this project was to see if it worked with webpack 5 and then add it to create-single-spa, then add webpack 4 support. However, I've gotten busy with other things so I haven't worked on it for a while. I doubt that I'll work on webpack 4 support in the near future, as there are a lot of other things consuming my time right now. I'll add a note in the readme about webpack 4/5. Contributions for this are accepted.

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

No branches or pull requests

2 participants