Skip to content

Commit d3dc33e

Browse files
authored
install and migrate to css-loader@v7 (#3749)
1 parent bea9f7d commit d3dc33e

File tree

4 files changed

+101
-24
lines changed

4 files changed

+101
-24
lines changed

.storybook/webpack.config.js

+9-5
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ module.exports = ({ config }) => {
7272
importLoaders: 1,
7373
modules: {
7474
localIdentName: '[local]-[hash:base64:5]',
75+
namedExport: false,
76+
exportLocalsConvention: 'as-is',
7577
},
7678
},
7779
},
@@ -97,6 +99,8 @@ module.exports = ({ config }) => {
9799
importLoaders: 1,
98100
modules: {
99101
localIdentName: '[local]-[hash:base64:5]',
102+
namedExport: false,
103+
exportLocalsConvention: 'as-is',
100104
},
101105
},
102106
},
@@ -113,11 +117,11 @@ module.exports = ({ config }) => {
113117
options: {
114118
additionalData: BPK_TOKENS
115119
? fs.readFileSync(
116-
path.join(
117-
rootDir,
118-
`node_modules/@skyscanner/bpk-foundations-web/tokens/${BPK_TOKENS}.scss`,
119-
),
120-
)
120+
path.join(
121+
rootDir,
122+
`node_modules/@skyscanner/bpk-foundations-web/tokens/${BPK_TOKENS}.scss`,
123+
),
124+
)
121125
: '',
122126
},
123127
},

package-lock.json

+87-18
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@
152152
"babel-plugin-react-docgen": "^4.2.1",
153153
"babel-plugin-require-context-hook": "^1.0.0",
154154
"core-js": "^3.40.0",
155-
"css-loader": "^6.10.0",
155+
"css-loader": "^7.1.2",
156156
"d3-scale": "^4.0.2",
157157
"danger": "^12.3.3",
158158
"danger-plugin-toolbox": "^3.1.2",

packages/bpk-stylesheets/webpack.config.babel.js

+4
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ module.exports = {
7474
options: {
7575
importLoaders: 1,
7676
modules: 'global',
77+
namedExport: false,
78+
exportLocalsConvention: 'as-is',
7779
},
7880
},
7981
{
@@ -100,6 +102,8 @@ module.exports = {
100102
options: {
101103
importLoaders: 1,
102104
modules: 'global',
105+
namedExport: false,
106+
exportLocalsConvention: 'as-is',
103107
},
104108
},
105109
{

0 commit comments

Comments
 (0)