From 52e1349accd944dc60c383d350e0ec522924b329 Mon Sep 17 00:00:00 2001 From: Jesse Yang Date: Tue, 19 Apr 2022 09:18:16 -0700 Subject: [PATCH] chore(build): upgrade less-loader (#19703) --- CHANGELOG.md | 1 + superset-frontend/package.json | 2 +- .../tools/eslint-plugin-theme-colors/package.json | 6 +----- superset-frontend/webpack.config.js | 4 +++- 4 files changed, 6 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f5e5c2dcaea2a..7ffc20de648b3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -43,6 +43,7 @@ under the License. - [#21018](https://github.com/apache/superset/pull/21018) perf: Memoize the common_bootstrap_payload (@bkyryliuk) - [#20974](https://github.com/apache/superset/pull/20974) perf: Implement model specific lookups by id to improve performance (@bkyryliuk) - [#20273](https://github.com/apache/superset/pull/20273) chore: adjust the psycopg2 version of k8s installation guide (@ensky) +- [#19703](https://github.com/apache/superset/pull/19703) chore(build): upgrade less-loader (@ktmud) ### 1.5.1 (Thu May 26 14:45:20 2022 +0300) diff --git a/superset-frontend/package.json b/superset-frontend/package.json index bd111ab292bd7..6674b3e0b6b53 100644 --- a/superset-frontend/package.json +++ b/superset-frontend/package.json @@ -306,7 +306,7 @@ "jsdom": "^16.4.0", "lerna": "^4.0.0", "less": "^3.12.2", - "less-loader": "^5.0.0", + "less-loader": "^10.2.0", "mini-css-extract-plugin": "^2.3.0", "mock-socket": "^9.0.3", "node-fetch": "^2.6.1", diff --git a/superset-frontend/tools/eslint-plugin-theme-colors/package.json b/superset-frontend/tools/eslint-plugin-theme-colors/package.json index 6832811e8a386..25938c97bd8d4 100644 --- a/superset-frontend/tools/eslint-plugin-theme-colors/package.json +++ b/superset-frontend/tools/eslint-plugin-theme-colors/package.json @@ -9,9 +9,5 @@ "keywords": [], "license": "Apache-2.0", "author": "Apache", - "dependencies": {}, - "engines": { - "node": "^16.9.1", - "npm": "^7.5.4" - } + "dependencies": {} } diff --git a/superset-frontend/webpack.config.js b/superset-frontend/webpack.config.js index 6b3c4e30a8b13..a5e6cee810770 100644 --- a/superset-frontend/webpack.config.js +++ b/superset-frontend/webpack.config.js @@ -383,7 +383,9 @@ const config = { loader: 'less-loader', options: { sourceMap: isDevMode, - javascriptEnabled: true, + lessOptions: { + javascriptEnabled: true, + }, }, }, ],