Skip to content

Commit

Permalink
[Publish] Fix style-loader compatibility: turn esModule option off …
Browse files Browse the repository at this point in the history
…for a while.

Otherwise it breaks backward compatibility with usages like "require('.../ring-ui/...file.css')"
  • Loading branch information
andrey-skl committed Oct 19, 2020
1 parent 7064104 commit cd2afa0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,12 @@ const cssLoader = {
test: /\.css$/,
include: componentsPath,
use: [
require.resolve('style-loader'),
{
loader: require.resolve('style-loader'),
options: {
esModule: false
}
},
{
loader: require.resolve('css-loader'),
options: {
Expand Down

0 comments on commit cd2afa0

Please sign in to comment.