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
These usage cause css-loader became less compatible. For example, when using css-loader with thread-loader, the loader fails to run because of missing properties.
Actual Behavior
When using css-loader with thread-loader, this error occurred.
Expected Behavior
css-loader should not depends on any webpack specific properties.
Sorry, bug in thread-loader, we can't fix it here, already tracked in thread-loader repo, anyway I recommend do not use thread-loader, it is slow down your build in most of case, prefer to use cache
Bug report
In the latest version of css-loader ( 6.5.1 ), there are several lines of code that used webpack specific properties in loader context, like,
css-loader/src/utils.js
Line 946 in 0df1ae9
and
css-loader/src/utils.js
Line 373 in 0df1ae9
and
css-loader/src/utils.js
Line 412 in 0df1ae9
These usage cause
css-loader
became less compatible. For example, when usingcss-loader
withthread-loader
, the loader fails to run because of missing properties.Actual Behavior
When using
css-loader
withthread-loader
, this error occurred.Expected Behavior
css-loader
should not depends on any webpack specific properties.How Do We Reproduce?
Please paste the results of
npx webpack-cli info
here, and mention other relevant informationN/A
Refs
Same issue in
thread-loader
: webpack-contrib/thread-loader#66Similar issue in previous: #1281
The text was updated successfully, but these errors were encountered: