Skip to content
This repository was archived by the owner on Oct 10, 2023. It is now read-only.

Commit 80a6422

Browse files
SaiCharanMahadevanSai
andauthored
refactor: update less to v3 to avoid all the deprecation warnings (#7)
Co-authored-by: Sai <[email protected]>
1 parent 2795d39 commit 80a6422

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

packages/react-scripts/config/webpack.config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -571,6 +571,10 @@ module.exports = function(webpackEnv) {
571571
// variable overrides for antd default less variables
572572
// https://github.com/ant-design/ant-design/blob/master/components/style/themes/default.less
573573
modifyVars: themeVariables,
574+
// Potential risk allowing inline js -> https://stackoverflow.com/a/50686643/13430933
575+
// However, this is required to support antd on less@^3.x.x unless we write our own plugins
576+
// to expose the same
577+
javascriptEnabled: true,
574578
}
575579
),
576580
// Don't consider CSS imports dead code even if the

packages/react-scripts/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
"jest-environment-jsdom-fourteen": "1.0.1",
6161
"jest-resolve": "24.9.0",
6262
"jest-watch-typeahead": "0.4.2",
63-
"less": "2.7.3",
63+
"less": "^3.11.1",
6464
"less-loader": "^5.0.0",
6565
"less-vars-to-js": "^1.3.0",
6666
"mini-css-extract-plugin": "0.9.0",

0 commit comments

Comments
 (0)