From 8ad9ecf725ad5cede6232d992b11e5e0ceaf83a7 Mon Sep 17 00:00:00 2001 From: Michael Matloka Date: Tue, 6 Feb 2024 13:35:13 +0100 Subject: [PATCH] chore(dev): Speed up SCSS compilation (#20132) --- .../src/layout/navigation/ProjectNotice.tsx | 2 +- package.json | 2 +- pnpm-lock.yaml | 229 ++++++++++++++++-- 3 files changed, 207 insertions(+), 26 deletions(-) diff --git a/frontend/src/layout/navigation/ProjectNotice.tsx b/frontend/src/layout/navigation/ProjectNotice.tsx index 3b412aa439c..4761480a2df 100644 --- a/frontend/src/layout/navigation/ProjectNotice.tsx +++ b/frontend/src/layout/navigation/ProjectNotice.tsx @@ -105,7 +105,7 @@ export function ProjectNotice(): JSX.Element | null { action: { 'data-attr': 'stop-impersonation-cta', onClick: () => logout(), - children: 'Logout', + children: 'Log out', }, }, } diff --git a/package.json b/package.json index f7e052a8311..d6e9e9b49d1 100644 --- a/package.json +++ b/package.json @@ -116,7 +116,7 @@ "dompurify": "^3.0.6", "esbuild": "^0.19.8", "esbuild-plugin-less": "^1.3.1", - "esbuild-sass-plugin": "^2.16.0", + "esbuild-sass-plugin": "^3.0.0", "expr-eval": "^2.0.2", "express": "^4.17.1", "fast-deep-equal": "^3.1.3", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 56439792d35..e4e71d995c9 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -170,8 +170,8 @@ dependencies: specifier: ^1.3.1 version: 1.3.1(esbuild@0.19.8) esbuild-sass-plugin: - specifier: ^2.16.0 - version: 2.16.0(esbuild@0.19.8) + specifier: ^3.0.0 + version: 3.0.0(esbuild@0.19.8) expr-eval: specifier: ^2.0.2 version: 2.0.2 @@ -3446,6 +3446,10 @@ packages: resolution: {integrity: sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==} dev: true + /@bufbuild/protobuf@1.7.2: + resolution: {integrity: sha512-i5GE2Dk5ekdlK1TR7SugY4LWRrKSfb5T1Qn4unpIMbfxoeGKERKQ59HG3iYewacGD10SR7UzevfPnh6my4tNmQ==} + dev: false + /@colors/colors@1.5.0: resolution: {integrity: sha512-ooWCrlZP11i8GImSjTHYHLkvFDP48nS4+204nGb1RiX/WXYHmJA2III9/e2DWVabCESdW7hBAEzHRqUn9OUVvQ==} engines: {node: '>=0.1.90'} @@ -9568,6 +9572,10 @@ packages: node-int64: 0.4.0 dev: true + /buffer-builder@0.2.0: + resolution: {integrity: sha512-7VPMEPuYznPSoR21NE1zvd2Xna6c/CloiZCfcMXR1Jny6PjX0N4Nsa38zcBFo/FMK+BlA+FLKbJCQ0i2yxp+Xg==} + dev: false + /buffer-crc32@0.2.13: resolution: {integrity: sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ==} dev: true @@ -11612,14 +11620,14 @@ packages: - supports-color dev: true - /esbuild-sass-plugin@2.16.0(esbuild@0.19.8): - resolution: {integrity: sha512-mGCe9MxNYvZ+j77Q/QFO+rwUGA36mojDXkOhtVmoyz1zwYbMaNrtVrmXwwYDleS/UMKTNU3kXuiTtPiAD3K+Pw==} + /esbuild-sass-plugin@3.0.0(esbuild@0.19.8): + resolution: {integrity: sha512-bwIzYBdI7mK0HghblwqGEYX44Hknvj6EBKXEI8e0hC+Xui5L8oUXFeJ4/PDldxYD++wIPuA6Lr4EAnNCtbv//A==} peerDependencies: - esbuild: ^0.19.4 + esbuild: ^0.20.0 dependencies: esbuild: 0.19.8 resolve: 1.22.8 - sass: 1.56.0 + sass-embedded: 1.70.0 dev: false /esbuild@0.18.20: @@ -13577,12 +13585,6 @@ packages: ci-info: 3.5.0 dev: true - /is-core-module@2.11.0: - resolution: {integrity: sha512-RRjxlvLDkD1YJwDbroBHMb+cukurkDWNyHx7D3oNB5x9rb5ogcksMC5wHCadcXoo67gVr/+3GFySh3134zi6rw==} - dependencies: - has: 1.0.3 - dev: true - /is-core-module@2.13.1: resolution: {integrity: sha512-hHrIjvZsftOsvKSn2TRYl63zvxsgE0K+0mYMoH6gD4omR5IWB2KynivBQczo3+wF1cCkjzvptnI9Q0sPU66ilw==} dependencies: @@ -18664,7 +18666,7 @@ packages: resolution: {integrity: sha512-/vxpCXddiX8NGfGO/mTafwjq4aFa/71pvamip0++IQk3zG8cbCj0fifNPrjjF1XMXUne91jL9OoxmdykoEtifQ==} engines: {node: '>= 10.13.0'} dependencies: - resolve: 1.22.1 + resolve: 1.22.8 dev: true /redent@3.0.0: @@ -18896,15 +18898,6 @@ packages: engines: {node: '>=10'} dev: true - /resolve@1.22.1: - resolution: {integrity: sha512-nBpuuYuY5jFsli/JIs1oldw6fOQCBioohqWZg/2hiaOybXOft4lonv85uDOKXdf8rhyK159cxU5cDcK/NKk8zw==} - hasBin: true - dependencies: - is-core-module: 2.13.1 - path-parse: 1.0.7 - supports-preserve-symlinks-flag: 1.0.0 - dev: true - /resolve@1.22.8: resolution: {integrity: sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw==} hasBin: true @@ -18917,7 +18910,7 @@ packages: resolution: {integrity: sha512-iMDbmAWtfU+MHpxt/I5iWI7cY6YVEZUQ3MBgPQ++XD1PELuJHIl82xBmObyP2KyQmkNB2dsqF7seoQQiAn5yDQ==} hasBin: true dependencies: - is-core-module: 2.11.0 + is-core-module: 2.13.1 path-parse: 1.0.7 supports-preserve-symlinks-flag: 1.0.0 dev: true @@ -19029,7 +19022,6 @@ packages: resolution: {integrity: sha512-AA3TVj+0A2iuIoQkWEK/tqFjBq2j+6PO6Y0zJcvzLAFhEFIO3HL0vls9hWLncZbAAbK0mar7oZ4V079I/qPMxg==} dependencies: tslib: 2.6.2 - dev: true /safe-array-concat@1.0.1: resolution: {integrity: sha512-6XbUAseYE2KtOuGueyeobCySj9L4+66Tn6KQMOPQJrAJEowYKW/YR/MGJZl7FdydUdaFu4LYyDZjxf4/Nmo23Q==} @@ -19064,6 +19056,191 @@ packages: /safer-buffer@2.1.2: resolution: {integrity: sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==} + /sass-embedded-android-arm64@1.70.0: + resolution: {integrity: sha512-vMr7fruLUv/VvF7CPVF1z7Bc28a8K9Ps5nyN3UatOj+irxN1LbZIbeQua6neX2eFUsXvcg7hLZwvV3+T96Fhrw==} + engines: {node: '>=14.0.0'} + cpu: [arm64] + os: [android] + hasBin: true + requiresBuild: true + dev: false + optional: true + + /sass-embedded-android-arm@1.70.0: + resolution: {integrity: sha512-Vog4Z+tsDYGv7m9sZisr/P6KvqDioCMu0cinexdnXhHXReo+X6CFe79yv/zA/Xfq5HtAAmFjGD6CO/nTjoydtw==} + engines: {node: '>=14.0.0'} + cpu: [arm] + os: [android] + hasBin: true + requiresBuild: true + dev: false + optional: true + + /sass-embedded-android-ia32@1.70.0: + resolution: {integrity: sha512-RWEJ7sBGBCd101oSBPuePPU8yXb1iB/ME4sRhgI5xjjyIsldiuvX48saW25u1ZqCo2AVA0BTXfWpNJnhKB3b4Q==} + engines: {node: '>=14.0.0'} + cpu: [ia32] + os: [android] + hasBin: true + requiresBuild: true + dev: false + optional: true + + /sass-embedded-android-x64@1.70.0: + resolution: {integrity: sha512-u+ijV6AQR/84kjjGb3mp0aibPiXkFKqfmHxqYBMN7h2xV7EM70Yz054nVifaBr8nfC0E8aT/DurSI4nkkQ6Uvg==} + engines: {node: '>=14.0.0'} + cpu: [x64] + os: [android] + hasBin: true + requiresBuild: true + dev: false + optional: true + + /sass-embedded-darwin-arm64@1.70.0: + resolution: {integrity: sha512-qMs08h0nwRA1B/Ieakcg/Y6lcCEnuBnPTNEkFkBlnfj3PFVPTb50wQvDr9JLpcjXWznlBxyFrz1nZM+pXDix7Q==} + engines: {node: '>=14.0.0'} + cpu: [arm64] + os: [darwin] + hasBin: true + requiresBuild: true + dev: false + optional: true + + /sass-embedded-darwin-x64@1.70.0: + resolution: {integrity: sha512-Vf8UQY3IBmsaz9L5DeJDjn19N//1n3rTquH69x29zPCd3zF2gnay38atxIZ+6h7VsZT3C6evm0y58JUJDWN1CA==} + engines: {node: '>=14.0.0'} + cpu: [x64] + os: [darwin] + hasBin: true + requiresBuild: true + dev: false + optional: true + + /sass-embedded-linux-arm64@1.70.0: + resolution: {integrity: sha512-PzhBg5xlyXcZ8FgyjqAcVtfaq462l3KeEid2OxrsOzBQgdgJb0La1tAEOpP9jz7YOOTr9A96vm609W9fRLI2Iw==} + engines: {node: '>=14.0.0'} + cpu: [arm64] + os: [linux] + hasBin: true + requiresBuild: true + dev: false + optional: true + + /sass-embedded-linux-arm@1.70.0: + resolution: {integrity: sha512-U9e+k0XHwubeSIwsBYTNrTVH+0zF/ErSfuHfgTfuvlcKlhoGtFgAb7W8Qfe9FDF6TYTt0fJAJhSV2MdoExsgRA==} + engines: {node: '>=14.0.0'} + cpu: [arm] + os: [linux] + hasBin: true + requiresBuild: true + dev: false + optional: true + + /sass-embedded-linux-ia32@1.70.0: + resolution: {integrity: sha512-UOxTJywQRC/HzFQthlyNWJ07MX8EzKuTgH0N5T3XyXQTNuGeJQ8EPWY9fv1weLCjydVOEwm853F3djtUNmkCtg==} + engines: {node: '>=14.0.0'} + cpu: [ia32] + os: [linux] + hasBin: true + requiresBuild: true + dev: false + optional: true + + /sass-embedded-linux-musl-arm64@1.70.0: + resolution: {integrity: sha512-DJl1AV9W7T3SHzXFqAtyjPZy4O2g4AC6QctY5/aM42DTY/xpWOmwUBgsDzDoRbNqP7qDl+GtHLlggrLWCBP9fg==} + engines: {node: '>=14.0.0'} + cpu: [arm64] + os: [linux] + requiresBuild: true + dev: false + optional: true + + /sass-embedded-linux-musl-arm@1.70.0: + resolution: {integrity: sha512-8zudDFpAoNrQDujNYBKkq8nwl4i0jMmXcysO9Ou0llrzdY7Keok2z1aS3IbZy7AvUXtGaeYSHUi5lXdOalJ/QQ==} + engines: {node: '>=14.0.0'} + cpu: [arm] + os: [linux] + requiresBuild: true + dev: false + optional: true + + /sass-embedded-linux-musl-ia32@1.70.0: + resolution: {integrity: sha512-CcAvT3KPc7cCJfTu1E0HzsAjE/dPQsKaXQD/nsBXNZo081R+lLR2u22wpXM2pnzMNJETRV/pDwozHoYEcPkPqQ==} + engines: {node: '>=14.0.0'} + cpu: [ia32] + os: [linux] + requiresBuild: true + dev: false + optional: true + + /sass-embedded-linux-musl-x64@1.70.0: + resolution: {integrity: sha512-g3i9PKmqTxuyrM1Yeju1s4Fj6fzAGyyfzw/LiZZtq0ZZGhJXJMVvEDog/OxQ37eYxWqq9XHFTW2PphMvukVK0g==} + engines: {node: '>=14.0.0'} + cpu: [x64] + os: [linux] + requiresBuild: true + dev: false + optional: true + + /sass-embedded-linux-x64@1.70.0: + resolution: {integrity: sha512-F9F2CA7C6z/ROfF0U/jtYWknbDe9S/TJoCJ5TlHafwS+SrZE1A+Czf2MWJ+8mc2NFiRjYzYxt4Ad29cuc6rrhw==} + engines: {node: '>=14.0.0'} + cpu: [x64] + os: [linux] + hasBin: true + requiresBuild: true + dev: false + optional: true + + /sass-embedded-win32-ia32@1.70.0: + resolution: {integrity: sha512-TITx2QwJouhMwA0CAjCmnTNeCDL9g2fkLe9z+5rf39OdmcX9CEBrY4CNaO5REnMpgoa+o82u272ZR3oWrsUs8Q==} + engines: {node: '>=14.0.0'} + cpu: [ia32] + os: [win32] + hasBin: true + requiresBuild: true + dev: false + optional: true + + /sass-embedded-win32-x64@1.70.0: + resolution: {integrity: sha512-rPe8WUdARhlfgIhGcCTGbTNgd6OppcmjtBrxUNoGs3AENSREQCpaNv5d+HBOMhGUfYgXIHUSiipilFUhLWpsrQ==} + engines: {node: '>=14.0.0'} + cpu: [arm64, x64] + os: [win32] + hasBin: true + requiresBuild: true + dev: false + optional: true + + /sass-embedded@1.70.0: + resolution: {integrity: sha512-1sVSh5MlSdktkwC2zG9WuaVR6j7AlDxadPmZBN0wP4GhznMQTvpwNIAFhAqgjwJYhwdWFOKEdIHSQK4V8K434Q==} + engines: {node: '>=16.0.0'} + dependencies: + '@bufbuild/protobuf': 1.7.2 + buffer-builder: 0.2.0 + immutable: 4.1.0 + rxjs: 7.8.1 + supports-color: 8.1.1 + varint: 6.0.0 + optionalDependencies: + sass-embedded-android-arm: 1.70.0 + sass-embedded-android-arm64: 1.70.0 + sass-embedded-android-ia32: 1.70.0 + sass-embedded-android-x64: 1.70.0 + sass-embedded-darwin-arm64: 1.70.0 + sass-embedded-darwin-x64: 1.70.0 + sass-embedded-linux-arm: 1.70.0 + sass-embedded-linux-arm64: 1.70.0 + sass-embedded-linux-ia32: 1.70.0 + sass-embedded-linux-musl-arm: 1.70.0 + sass-embedded-linux-musl-arm64: 1.70.0 + sass-embedded-linux-musl-ia32: 1.70.0 + sass-embedded-linux-musl-x64: 1.70.0 + sass-embedded-linux-x64: 1.70.0 + sass-embedded-win32-ia32: 1.70.0 + sass-embedded-win32-x64: 1.70.0 + dev: false + /sass-loader@10.3.1(sass@1.56.0)(webpack@5.88.2): resolution: {integrity: sha512-y2aBdtYkbqorVavkC3fcJIUDGIegzDWPn3/LAFhsf3G+MzPKTJx37sROf5pXtUeggSVbNbmfj8TgRaSLMelXRA==} engines: {node: '>= 10.13.0'} @@ -20863,6 +21040,10 @@ packages: spdx-expression-parse: 3.0.1 dev: true + /varint@6.0.0: + resolution: {integrity: sha512-cXEIW6cfr15lFv563k4GuVuW/fiwjknytD37jIOLSdSWuOI6WnO/oKwmP2FQTU2l01LP8/M5TSAJpzUaGe3uWg==} + dev: false + /vary@1.1.2: resolution: {integrity: sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==} engines: {node: '>= 0.8'}