Skip to content

Commit 3c394fc

Browse files
mmaloongauravtiwari
authored andcommitted
update yarn packages & update get_style_rule to handle [email protected] (#2130)
1 parent 4107b26 commit 3c394fc

File tree

3 files changed

+211
-179
lines changed

3 files changed

+211
-179
lines changed

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,20 +23,20 @@
2323
"@babel/runtime": "^7.4.5",
2424
"babel-loader": "^8.0.6",
2525
"babel-plugin-dynamic-import-node": "^2.2.0",
26-
"babel-plugin-macros": "^2.5.0",
26+
"babel-plugin-macros": "^2.6.1",
2727
"case-sensitive-paths-webpack-plugin": "^2.2.0",
28-
"compression-webpack-plugin": "^2.0.0",
28+
"compression-webpack-plugin": "^3.0.0",
2929
"core-js": "^3.1.3",
30-
"css-loader": "^2.1.1",
31-
"file-loader": "^3.0.1",
30+
"css-loader": "^3.0.0",
31+
"file-loader": "^4.0.0",
3232
"flatted": "^2.0.0",
3333
"glob": "^7.1.4",
3434
"js-yaml": "^3.13.1",
3535
"mini-css-extract-plugin": "^0.7.0",
3636
"node-sass": "^4.12.0",
3737
"optimize-css-assets-webpack-plugin": "^5.0.1",
3838
"path-complete-extname": "^1.0.0",
39-
"pnp-webpack-plugin": "^1.4.3",
39+
"pnp-webpack-plugin": "^1.5.0",
4040
"postcss-flexbugs-fixes": "^4.1.0",
4141
"postcss-import": "^12.0.1",
4242
"postcss-loader": "^3.0.0",
@@ -46,9 +46,9 @@
4646
"sass-loader": "^7.1.0",
4747
"style-loader": "^0.23.1",
4848
"terser-webpack-plugin": "^1.3.0",
49-
"webpack": "^4.32.2",
49+
"webpack": "^4.34.0",
5050
"webpack-assets-manifest": "^3.1.1",
51-
"webpack-cli": "^3.3.2",
51+
"webpack-cli": "^3.3.4",
5252
"webpack-sources": "^1.3.0"
5353
},
5454
"devDependencies": {

package/utils/get_style_rule.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,9 @@ const getStyleRule = (test, modules = false, preprocessors = []) => {
2121
options: {
2222
sourceMap: true,
2323
importLoaders: 2,
24-
localIdentName: '[name]__[local]___[hash:base64:5]',
25-
modules
24+
modules: modules ? {
25+
localIdentName: '[name]__[local]___[hash:base64:5]'
26+
} : false
2627
}
2728
},
2829
{

0 commit comments

Comments
 (0)