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
Experiments.css reliance on fact that css should be loaded before js is a huge breaking change #17611
Comments
Bump |
I've got the same issue with an HTML fragment (which contains styles and scripts of pure CSS entry) loaded (with jQuery) in the document. The script try to find the CSS module, but can't find any because the stylesheet it's not loaded yet (non blocking?). I think it's related to how entry startup work that consider the stylesheet not a chunk, means all modules should be available synchronously when the entry start. |
This issue had no activity for at least three months. It's subject to automatic issue closing if there is no activity in the next 15 days. |
Close #14893, I added it and we need improve it |
Also you should use |
Ok, thanks, closing it @alexander-akait im curretly using workaround that embeds part of css with variable --webpack-bla-bla via pluing into js. |
We can do it, please write about it here #14893 with examples so we don't forget about it, there are a lot of good improvements too |
Bug report/breaking change
Im trying experimental feature: #14893
Imagine you have following code
index.js:
index.html:
What is the current behavior?
This code would fail:
If the current behavior is a bug, please provide the steps to reproduce.
Here I made a repo to reproduce:
yarn install
yarn webpack
oryarn webpack serve
What is the expected behavior?
No error should happen or if its intended behavior there should be a friendly error message and there should be a breaking change entry in migration docs for webpack 6
Other relevant information:
webpack version: 5.88.2
Node.js version: 18.16.0
Operating System: windows
Additional tools: yarn
The text was updated successfully, but these errors were encountered: