You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Webpack 5.87.0 produces the same output for different layers when using require.context, even if the rules per layer should produce a different output.
If the current behavior is a bug, please provide the steps to reproduce.
Bug report
What is the current behavior?
Webpack
5.87.0
produces the same output for different layers when usingrequire.context
, even if the rules per layer should produce a different output.If the current behavior is a bug, please provide the steps to reproduce.
v19.7.0
npm install
npm run build
webpack.config.js
:It produces two files in
public/assets/
.Current result:
public/assets/light-a050d6fca14afa704ffb.css
:public/assets/dark-a050d6fca14afa704ffb.css
:Note:
test1
was required withrequire.context
(and is broken)test2
was required withrequire
(and works as expected)What is the expected behavior?
Expected result:
public/assets/light-a050d6fca14afa704ffb.css
:public/assets/dark-a050d6fca14afa704ffb.css
:Maybe related to #17310.
Other relevant information:
webpack version: 5.87.0
Node.js version: 19.7.0
Operating System: Linux
Additional tools:
sass-loader
:13.3.2
The text was updated successfully, but these errors were encountered: