Skip to content

Commit 392ad7e

Browse files
committed
Update css-loader & related packages
Switched to a fork for the babel css module transform since upstream is slow and not compatible with the latest css-loader anymore. See this issue for details: gajus/babel-plugin-react-css-modules#291
1 parent 723a92a commit 392ad7e

File tree

4 files changed

+466
-715
lines changed

4 files changed

+466
-715
lines changed

babel.config.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const plugins = [
1616
'@babel/plugin-proposal-class-properties',
1717
'lodash',
1818
[
19-
'react-css-modules',
19+
'@dr.pogodin/react-css-modules',
2020
{
2121
exclude: 'node_modules',
2222
context: 'indico/modules',
@@ -26,6 +26,7 @@ const plugins = [
2626
},
2727
},
2828
autoResolveMultipleImports: true,
29+
generateScopedName: '[path]___[name]__[local]___[hash:base64:5]',
2930
},
3031
],
3132
'macros',

0 commit comments

Comments
 (0)