Repository navigation
Replies: 1 comment
|
A few pointers for whoever picks this up. The rule is in webpack now covers both loaders:
So the builder could replace the loader chain with: module: {
parser: { 'css/auto': { exportType: 'style', namedExports: false } },
generator: { 'css/auto': { exportsConvention: 'as-is' } },
},
I checked this on webpack 5.111.1 in headless Chrome:
The builder allows |
Uh oh!
There was an error while loading. Please reload this page.
Is your feature request related to a problem? Please describe.
The css-loader folks have archived their repo and deprecated it. See https://github.com/webpack/css-loader.
Their recommendation is to
css-loader is deprecated — webpack parses CSS itself and no longer needs it.According to
storybook/code/builders/builder-webpack5/src/preview/base-webpack.config.ts
Line 23 in 1e132c2
there has been a TODO on whether or not to keep css-loader in the core for awhile now.
Some of the dependent css-modules now have CVEs and given everything is deprecated, I'm unsure if they will ever be fixed.
Describe the solution you'd like
It would be nice if css-loader could be removed as a direct dependency.
Describe alternatives you've considered
No response
Are you able to assist to bring the feature to reality?
no
Additional context
I started this off as another discussion thread so see #36626 (reply in thread) for more info.
All reactions