From c9da2f7f41f2d2e264cd4205bf383716947112a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20=C5=A0ime=C4=8Dek?= Date: Sun, 13 Mar 2022 13:05:57 +0100 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20Reverted=20back=20to=20us?= =?UTF-8?q?ing=20mini-css-extract-plugin=20by=20defaul?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package-lock.json | 232 +++++++++------- package.json | 14 +- packages/cli/package-lock.json | 258 ++++++++++++------ packages/cli/package.json | 11 +- packages/cli/src/types.ts | 1 + packages/cli/src/webpack/config.ts | 46 +++- packages/cli/src/webpack/utils.ts | 1 + packages/dev-utils/.npmignore | 3 + packages/dev-utils/package.json | 3 - packages/error-overlay/package.json | 2 - packages/error-overlay/src/App.tsx | 2 +- .../src/components/overlay/Overlay.tsx | 13 +- .../src/components/overlay/overlay.less | 24 +- packages/hmr-client/.npmignore | 3 + packages/hmr-client/package.json | 3 - packages/server/lib/error-view/index.ejs | 2 +- 16 files changed, 392 insertions(+), 226 deletions(-) create mode 100644 packages/dev-utils/.npmignore create mode 100644 packages/hmr-client/.npmignore diff --git a/package-lock.json b/package-lock.json index ce93c37749..eb4b7d3adc 100644 --- a/package-lock.json +++ b/package-lock.json @@ -661,16 +661,16 @@ "dev": true }, "@eslint/eslintrc": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-1.2.0.tgz", - "integrity": "sha512-igm9SjJHNEJRiUnecP/1R5T3wKLEJ7pL6e2P+GUSfCd0dGjPYYZve08uzw8L2J8foVHFz+NGu12JxRcU2gGo6w==", + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-1.2.1.tgz", + "integrity": "sha512-bxvbYnBPN1Gibwyp6NrpnFzA3YtRL3BBAyEAFVIpNTm2Rn4Vy87GA5M4aSn3InRrlsbX5N0GW7XIx+U4SAEKdQ==", "dev": true, "requires": { "ajv": "^6.12.4", "debug": "^4.3.2", "espree": "^9.3.1", "globals": "^13.9.0", - "ignore": "^4.0.6", + "ignore": "^5.2.0", "import-fresh": "^3.2.1", "js-yaml": "^4.1.0", "minimatch": "^3.0.4", @@ -683,12 +683,6 @@ "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", "dev": true }, - "ignore": { - "version": "4.0.6", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-4.0.6.tgz", - "integrity": "sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg==", - "dev": true - }, "js-yaml": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", @@ -3648,14 +3642,14 @@ "dev": true }, "@typescript-eslint/eslint-plugin": { - "version": "5.13.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.13.0.tgz", - "integrity": "sha512-vLktb2Uec81fxm/cfz2Hd6QaWOs8qdmVAZXLdOBX6JFJDhf6oDZpMzZ4/LZ6SFM/5DgDcxIMIvy3F+O9yZBuiQ==", + "version": "5.14.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.14.0.tgz", + "integrity": "sha512-ir0wYI4FfFUDfLcuwKzIH7sMVA+db7WYen47iRSaCGl+HMAZI9fpBwfDo45ZALD3A45ZGyHWDNLhbg8tZrMX4w==", "dev": true, "requires": { - "@typescript-eslint/scope-manager": "5.13.0", - "@typescript-eslint/type-utils": "5.13.0", - "@typescript-eslint/utils": "5.13.0", + "@typescript-eslint/scope-manager": "5.14.0", + "@typescript-eslint/type-utils": "5.14.0", + "@typescript-eslint/utils": "5.14.0", "debug": "^4.3.2", "functional-red-black-tree": "^1.0.1", "ignore": "^5.1.8", @@ -3665,29 +3659,29 @@ }, "dependencies": { "@typescript-eslint/scope-manager": { - "version": "5.13.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.13.0.tgz", - "integrity": "sha512-T4N8UvKYDSfVYdmJq7g2IPJYCRzwtp74KyDZytkR4OL3NRupvswvmJQJ4CX5tDSurW2cvCc1Ia1qM7d0jpa7IA==", + "version": "5.14.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.14.0.tgz", + "integrity": "sha512-LazdcMlGnv+xUc5R4qIlqH0OWARyl2kaP8pVCS39qSL3Pd1F7mI10DbdXeARcE62sVQE4fHNvEqMWsypWO+yEw==", "dev": true, "requires": { - "@typescript-eslint/types": "5.13.0", - "@typescript-eslint/visitor-keys": "5.13.0" + "@typescript-eslint/types": "5.14.0", + "@typescript-eslint/visitor-keys": "5.14.0" } }, "@typescript-eslint/types": { - "version": "5.13.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.13.0.tgz", - "integrity": "sha512-LmE/KO6DUy0nFY/OoQU0XelnmDt+V8lPQhh8MOVa7Y5k2gGRd6U9Kp3wAjhB4OHg57tUO0nOnwYQhRRyEAyOyg==", + "version": "5.14.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.14.0.tgz", + "integrity": "sha512-BR6Y9eE9360LNnW3eEUqAg6HxS9Q35kSIs4rp4vNHRdfg0s+/PgHgskvu5DFTM7G5VKAVjuyaN476LCPrdA7Mw==", "dev": true }, "@typescript-eslint/typescript-estree": { - "version": "5.13.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.13.0.tgz", - "integrity": "sha512-Q9cQow0DeLjnp5DuEDjLZ6JIkwGx3oYZe+BfcNuw/POhtpcxMTy18Icl6BJqTSd+3ftsrfuVb7mNHRZf7xiaNA==", + "version": "5.14.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.14.0.tgz", + "integrity": "sha512-QGnxvROrCVtLQ1724GLTHBTR0lZVu13izOp9njRvMkCBgWX26PKvmMP8k82nmXBRD3DQcFFq2oj3cKDwr0FaUA==", "dev": true, "requires": { - "@typescript-eslint/types": "5.13.0", - "@typescript-eslint/visitor-keys": "5.13.0", + "@typescript-eslint/types": "5.14.0", + "@typescript-eslint/visitor-keys": "5.14.0", "debug": "^4.3.2", "globby": "^11.0.4", "is-glob": "^4.0.3", @@ -3696,26 +3690,26 @@ } }, "@typescript-eslint/utils": { - "version": "5.13.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.13.0.tgz", - "integrity": "sha512-+9oHlPWYNl6AwwoEt5TQryEHwiKRVjz7Vk6kaBeD3/kwHE5YqTGHtm/JZY8Bo9ITOeKutFaXnBlMgSATMJALUQ==", + "version": "5.14.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.14.0.tgz", + "integrity": "sha512-EHwlII5mvUA0UsKYnVzySb/5EE/t03duUTweVy8Zqt3UQXBrpEVY144OTceFKaOe4xQXZJrkptCf7PjEBeGK4w==", "dev": true, "requires": { "@types/json-schema": "^7.0.9", - "@typescript-eslint/scope-manager": "5.13.0", - "@typescript-eslint/types": "5.13.0", - "@typescript-eslint/typescript-estree": "5.13.0", + "@typescript-eslint/scope-manager": "5.14.0", + "@typescript-eslint/types": "5.14.0", + "@typescript-eslint/typescript-estree": "5.14.0", "eslint-scope": "^5.1.1", "eslint-utils": "^3.0.0" } }, "@typescript-eslint/visitor-keys": { - "version": "5.13.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.13.0.tgz", - "integrity": "sha512-HLKEAS/qA1V7d9EzcpLFykTePmOQqOFim8oCvhY3pZgQ8Hi38hYpHd9e5GN6nQBFQNecNhws5wkS9Y5XIO0s/g==", + "version": "5.14.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.14.0.tgz", + "integrity": "sha512-yL0XxfzR94UEkjBqyymMLgCBdojzEuy/eim7N9/RIcTNxpJudAcqsU8eRyfzBbcEzGoPWfdM3AGak3cN08WOIw==", "dev": true, "requires": { - "@typescript-eslint/types": "5.13.0", + "@typescript-eslint/types": "5.14.0", "eslint-visitor-keys": "^3.0.0" } }, @@ -3737,41 +3731,41 @@ } }, "@typescript-eslint/parser": { - "version": "5.13.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.13.0.tgz", - "integrity": "sha512-GdrU4GvBE29tm2RqWOM0P5QfCtgCyN4hXICj/X9ibKED16136l9ZpoJvCL5pSKtmJzA+NRDzQ312wWMejCVVfg==", + "version": "5.14.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.14.0.tgz", + "integrity": "sha512-aHJN8/FuIy1Zvqk4U/gcO/fxeMKyoSv/rS46UXMXOJKVsLQ+iYPuXNbpbH7cBLcpSbmyyFbwrniLx5+kutu1pw==", "dev": true, "requires": { - "@typescript-eslint/scope-manager": "5.13.0", - "@typescript-eslint/types": "5.13.0", - "@typescript-eslint/typescript-estree": "5.13.0", + "@typescript-eslint/scope-manager": "5.14.0", + "@typescript-eslint/types": "5.14.0", + "@typescript-eslint/typescript-estree": "5.14.0", "debug": "^4.3.2" }, "dependencies": { "@typescript-eslint/scope-manager": { - "version": "5.13.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.13.0.tgz", - "integrity": "sha512-T4N8UvKYDSfVYdmJq7g2IPJYCRzwtp74KyDZytkR4OL3NRupvswvmJQJ4CX5tDSurW2cvCc1Ia1qM7d0jpa7IA==", + "version": "5.14.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.14.0.tgz", + "integrity": "sha512-LazdcMlGnv+xUc5R4qIlqH0OWARyl2kaP8pVCS39qSL3Pd1F7mI10DbdXeARcE62sVQE4fHNvEqMWsypWO+yEw==", "dev": true, "requires": { - "@typescript-eslint/types": "5.13.0", - "@typescript-eslint/visitor-keys": "5.13.0" + "@typescript-eslint/types": "5.14.0", + "@typescript-eslint/visitor-keys": "5.14.0" } }, "@typescript-eslint/types": { - "version": "5.13.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.13.0.tgz", - "integrity": "sha512-LmE/KO6DUy0nFY/OoQU0XelnmDt+V8lPQhh8MOVa7Y5k2gGRd6U9Kp3wAjhB4OHg57tUO0nOnwYQhRRyEAyOyg==", + "version": "5.14.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.14.0.tgz", + "integrity": "sha512-BR6Y9eE9360LNnW3eEUqAg6HxS9Q35kSIs4rp4vNHRdfg0s+/PgHgskvu5DFTM7G5VKAVjuyaN476LCPrdA7Mw==", "dev": true }, "@typescript-eslint/typescript-estree": { - "version": "5.13.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.13.0.tgz", - "integrity": "sha512-Q9cQow0DeLjnp5DuEDjLZ6JIkwGx3oYZe+BfcNuw/POhtpcxMTy18Icl6BJqTSd+3ftsrfuVb7mNHRZf7xiaNA==", + "version": "5.14.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.14.0.tgz", + "integrity": "sha512-QGnxvROrCVtLQ1724GLTHBTR0lZVu13izOp9njRvMkCBgWX26PKvmMP8k82nmXBRD3DQcFFq2oj3cKDwr0FaUA==", "dev": true, "requires": { - "@typescript-eslint/types": "5.13.0", - "@typescript-eslint/visitor-keys": "5.13.0", + "@typescript-eslint/types": "5.14.0", + "@typescript-eslint/visitor-keys": "5.14.0", "debug": "^4.3.2", "globby": "^11.0.4", "is-glob": "^4.0.3", @@ -3780,12 +3774,12 @@ } }, "@typescript-eslint/visitor-keys": { - "version": "5.13.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.13.0.tgz", - "integrity": "sha512-HLKEAS/qA1V7d9EzcpLFykTePmOQqOFim8oCvhY3pZgQ8Hi38hYpHd9e5GN6nQBFQNecNhws5wkS9Y5XIO0s/g==", + "version": "5.14.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.14.0.tgz", + "integrity": "sha512-yL0XxfzR94UEkjBqyymMLgCBdojzEuy/eim7N9/RIcTNxpJudAcqsU8eRyfzBbcEzGoPWfdM3AGak3cN08WOIw==", "dev": true, "requires": { - "@typescript-eslint/types": "5.13.0", + "@typescript-eslint/types": "5.14.0", "eslint-visitor-keys": "^3.0.0" } }, @@ -3817,40 +3811,40 @@ } }, "@typescript-eslint/type-utils": { - "version": "5.13.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.13.0.tgz", - "integrity": "sha512-/nz7qFizaBM1SuqAKb7GLkcNn2buRdDgZraXlkhz+vUGiN1NZ9LzkA595tHHeduAiS2MsHqMNhE2zNzGdw43Yg==", + "version": "5.14.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.14.0.tgz", + "integrity": "sha512-d4PTJxsqaUpv8iERTDSQBKUCV7Q5yyXjqXUl3XF7Sd9ogNLuKLkxz82qxokqQ4jXdTPZudWpmNtr/JjbbvUixw==", "dev": true, "requires": { - "@typescript-eslint/utils": "5.13.0", + "@typescript-eslint/utils": "5.14.0", "debug": "^4.3.2", "tsutils": "^3.21.0" }, "dependencies": { "@typescript-eslint/scope-manager": { - "version": "5.13.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.13.0.tgz", - "integrity": "sha512-T4N8UvKYDSfVYdmJq7g2IPJYCRzwtp74KyDZytkR4OL3NRupvswvmJQJ4CX5tDSurW2cvCc1Ia1qM7d0jpa7IA==", + "version": "5.14.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.14.0.tgz", + "integrity": "sha512-LazdcMlGnv+xUc5R4qIlqH0OWARyl2kaP8pVCS39qSL3Pd1F7mI10DbdXeARcE62sVQE4fHNvEqMWsypWO+yEw==", "dev": true, "requires": { - "@typescript-eslint/types": "5.13.0", - "@typescript-eslint/visitor-keys": "5.13.0" + "@typescript-eslint/types": "5.14.0", + "@typescript-eslint/visitor-keys": "5.14.0" } }, "@typescript-eslint/types": { - "version": "5.13.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.13.0.tgz", - "integrity": "sha512-LmE/KO6DUy0nFY/OoQU0XelnmDt+V8lPQhh8MOVa7Y5k2gGRd6U9Kp3wAjhB4OHg57tUO0nOnwYQhRRyEAyOyg==", + "version": "5.14.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.14.0.tgz", + "integrity": "sha512-BR6Y9eE9360LNnW3eEUqAg6HxS9Q35kSIs4rp4vNHRdfg0s+/PgHgskvu5DFTM7G5VKAVjuyaN476LCPrdA7Mw==", "dev": true }, "@typescript-eslint/typescript-estree": { - "version": "5.13.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.13.0.tgz", - "integrity": "sha512-Q9cQow0DeLjnp5DuEDjLZ6JIkwGx3oYZe+BfcNuw/POhtpcxMTy18Icl6BJqTSd+3ftsrfuVb7mNHRZf7xiaNA==", + "version": "5.14.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.14.0.tgz", + "integrity": "sha512-QGnxvROrCVtLQ1724GLTHBTR0lZVu13izOp9njRvMkCBgWX26PKvmMP8k82nmXBRD3DQcFFq2oj3cKDwr0FaUA==", "dev": true, "requires": { - "@typescript-eslint/types": "5.13.0", - "@typescript-eslint/visitor-keys": "5.13.0", + "@typescript-eslint/types": "5.14.0", + "@typescript-eslint/visitor-keys": "5.14.0", "debug": "^4.3.2", "globby": "^11.0.4", "is-glob": "^4.0.3", @@ -3859,26 +3853,26 @@ } }, "@typescript-eslint/utils": { - "version": "5.13.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.13.0.tgz", - "integrity": "sha512-+9oHlPWYNl6AwwoEt5TQryEHwiKRVjz7Vk6kaBeD3/kwHE5YqTGHtm/JZY8Bo9ITOeKutFaXnBlMgSATMJALUQ==", + "version": "5.14.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.14.0.tgz", + "integrity": "sha512-EHwlII5mvUA0UsKYnVzySb/5EE/t03duUTweVy8Zqt3UQXBrpEVY144OTceFKaOe4xQXZJrkptCf7PjEBeGK4w==", "dev": true, "requires": { "@types/json-schema": "^7.0.9", - "@typescript-eslint/scope-manager": "5.13.0", - "@typescript-eslint/types": "5.13.0", - "@typescript-eslint/typescript-estree": "5.13.0", + "@typescript-eslint/scope-manager": "5.14.0", + "@typescript-eslint/types": "5.14.0", + "@typescript-eslint/typescript-estree": "5.14.0", "eslint-scope": "^5.1.1", "eslint-utils": "^3.0.0" } }, "@typescript-eslint/visitor-keys": { - "version": "5.13.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.13.0.tgz", - "integrity": "sha512-HLKEAS/qA1V7d9EzcpLFykTePmOQqOFim8oCvhY3pZgQ8Hi38hYpHd9e5GN6nQBFQNecNhws5wkS9Y5XIO0s/g==", + "version": "5.14.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.14.0.tgz", + "integrity": "sha512-yL0XxfzR94UEkjBqyymMLgCBdojzEuy/eim7N9/RIcTNxpJudAcqsU8eRyfzBbcEzGoPWfdM3AGak3cN08WOIw==", "dev": true, "requires": { - "@typescript-eslint/types": "5.13.0", + "@typescript-eslint/types": "5.14.0", "eslint-visitor-keys": "^3.0.0" } }, @@ -8398,12 +8392,12 @@ } }, "eslint": { - "version": "8.10.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.10.0.tgz", - "integrity": "sha512-tcI1D9lfVec+R4LE1mNDnzoJ/f71Kl/9Cv4nG47jOueCMBrCCKYXr4AUVS7go6mWYGFD4+EoN6+eXSrEbRzXVw==", + "version": "8.11.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.11.0.tgz", + "integrity": "sha512-/KRpd9mIRg2raGxHRGwW9ZywYNAClZrHjdueHcrVDuO3a6bj83eoTirCCk0M0yPwOjWYKHwRVRid+xK4F/GHgA==", "dev": true, "requires": { - "@eslint/eslintrc": "^1.2.0", + "@eslint/eslintrc": "^1.2.1", "@humanwhocodes/config-array": "^0.9.2", "ajv": "^6.10.0", "chalk": "^4.0.0", @@ -17159,9 +17153,9 @@ "dev": true }, "postcss": { - "version": "8.4.7", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.7.tgz", - "integrity": "sha512-L9Ye3r6hkkCeOETQX6iOaWZgjp3LL6Lpqm6EtgbKrgqGGteRMNb9vzBfRL96YOSu8o7x3MfIH9Mo5cPJFGrW6A==", + "version": "8.4.8", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.8.tgz", + "integrity": "sha512-2tXEqGxrjvAO6U+CJzDL2Fk2kPHTv1jQsYkSoMeOis2SsYaXRO2COxTdQp99cYvif9JTXaAk9lYGc3VhJt7JPQ==", "dev": true, "requires": { "nanoid": "^3.3.1", @@ -18295,9 +18289,9 @@ } }, "rollup": { - "version": "2.69.0", - "resolved": "https://registry.npmjs.org/rollup/-/rollup-2.69.0.tgz", - "integrity": "sha512-kjER91tHyek8gAkuz7+558vSnTQ+pITEok1P0aNOS45ZXyngaqPsXJmSel4QPQnJo7EJMjXUU1/GErWkWiKORg==", + "version": "2.70.0", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-2.70.0.tgz", + "integrity": "sha512-iEzYw+syFxQ0X9RefVwhr8BA2TNJsTaX8L8dhyeyMECDbmiba+8UQzcu+xZdji0+JQ+s7kouQnw+9Oz5M19XKA==", "dev": true, "requires": { "fsevents": "~2.3.2" @@ -19529,10 +19523,13 @@ } }, "stylelint-config-css-modules": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/stylelint-config-css-modules/-/stylelint-config-css-modules-3.0.0.tgz", - "integrity": "sha512-NDvOK4M98r6XGZyYLEwd+1LSqVm8ReXERbdppnhRy25QzuGcjgYvBNA1v/BxeMXq8DCljg0h4uEbQy+av/37JQ==", - "dev": true + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/stylelint-config-css-modules/-/stylelint-config-css-modules-4.0.1.tgz", + "integrity": "sha512-H1+JI+YCRM6vbcwV5PuJqCFGzUkBkXrqVWlmt20KFtRgJ52yPOGBTixrVG7M55W1Q3u6TiiLpVFvQ3nj7WpXSA==", + "dev": true, + "requires": { + "stylelint-scss": "^4.1.0" + } }, "stylelint-config-recommended": { "version": "7.0.0", @@ -19565,6 +19562,29 @@ "postcss-sorting": "^7.0.1" } }, + "stylelint-scss": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/stylelint-scss/-/stylelint-scss-4.1.0.tgz", + "integrity": "sha512-BNYTo7MMamhFOlcaAWp2dMpjg6hPyM/FFqfDIYzmYVLMmQJqc8lWRIiTqP4UX5bresj9Vo0dKC6odSh43VP2NA==", + "dev": true, + "optional": true, + "requires": { + "lodash": "^4.17.21", + "postcss-media-query-parser": "^0.2.3", + "postcss-resolve-nested-selector": "^0.1.1", + "postcss-selector-parser": "^6.0.6", + "postcss-value-parser": "^4.1.0" + }, + "dependencies": { + "lodash": { + "version": "4.17.21", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", + "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", + "dev": true, + "optional": true + } + } + }, "supports-color": { "version": "5.5.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", @@ -20212,9 +20232,9 @@ "dev": true }, "ts-loader": { - "version": "9.2.7", - "resolved": "https://registry.npmjs.org/ts-loader/-/ts-loader-9.2.7.tgz", - "integrity": "sha512-Fxh44mKli9QezgbdCXkEJWxnedQ0ead7DXTH+lfXEPedu+Y9EtMJ2aQ9G3Dj1j7Q612E8931rww8NDZha4Tibg==", + "version": "9.2.8", + "resolved": "https://registry.npmjs.org/ts-loader/-/ts-loader-9.2.8.tgz", + "integrity": "sha512-gxSak7IHUuRtwKf3FIPSW1VpZcqF9+MBrHOvBp9cjHh+525SjtCIJKVGjRKIAfxBwDGDGCFF00rTfzB1quxdSw==", "dev": true, "requires": { "chalk": "^4.1.0", diff --git a/package.json b/package.json index 5714ff9aba..c6142407d9 100644 --- a/package.json +++ b/package.json @@ -13,13 +13,13 @@ "@types/node": "^17.0.21", "@types/webpack": "^5.28.0", "@types/webpack-env": "^1.16.3", - "@typescript-eslint/eslint-plugin": "^5.13.0", - "@typescript-eslint/parser": "^5.13.0", + "@typescript-eslint/eslint-plugin": "^5.14.0", + "@typescript-eslint/parser": "^5.14.0", "autocannon": "4.6.0", "bulma": "0.8.0", "commitizen": "^4.2.4", "del": "5.1.0", - "eslint": "^8.10.0", + "eslint": "^8.11.0", "eslint-config-prettier": "^8.5.0", "eslint-plugin-import": "^2.25.4", "eslint-plugin-jest": "^26.1.1", @@ -38,17 +38,17 @@ "lint-staged": "10.0.8", "lunr": "^2.3.9", "map-stream": "0.0.7", - "postcss": "^8.4.7", + "postcss": "^8.4.8", "postcss-less": "6.0.0", "prettier": "2.5.1", - "rollup": "^2.69.0", + "rollup": "^2.70.0", "stylelint": "^14.5.3", - "stylelint-config-css-modules": "^3.0.0", + "stylelint-config-css-modules": "^4.0.1", "stylelint-config-standard": "^25.0.0", "stylelint-declaration-block-no-ignored-properties": "2.5.0", "stylelint-order": "5.0.0", "to-mock": "1.6.2", - "ts-loader": "^9.2.7", + "ts-loader": "^9.2.8", "typescript": "^4.6.2", "verdaccio": "4.5.1", "webpack": "^5.69.1", diff --git a/packages/cli/package-lock.json b/packages/cli/package-lock.json index cfaa4da441..f46015c14e 100644 --- a/packages/cli/package-lock.json +++ b/packages/cli/package-lock.json @@ -1075,15 +1075,15 @@ } }, "@bundle-stats/cli-utils": { - "version": "3.2.5", - "resolved": "https://registry.npmjs.org/@bundle-stats/cli-utils/-/cli-utils-3.2.5.tgz", - "integrity": "sha512-XfRbCwTtOh4kV6kYto6A23gL/hJ88m9/Ea5UB8Cw4p/Uf/R+aO1IOuT1JfPx9fbpPzCJt6ITGjqd+nxRFAOyGA==", + "version": "3.2.9", + "resolved": "https://registry.npmjs.org/@bundle-stats/cli-utils/-/cli-utils-3.2.9.tgz", + "integrity": "sha512-ww1TBx7bsWZH7KmXuSQh3idTGTM3eSFUAYDt6thy9aMZHh3fzAmdUpBW4EFZNKBPpP1CeLgsmhW3YNVpRkT21Q==", "requires": { - "@bundle-stats/html-templates": "^3.2.5", - "@bundle-stats/utils": "^3.2.5", + "@bundle-stats/html-templates": "^3.2.9", + "@bundle-stats/utils": "^3.2.9", "core-js": "3.20.2", "find-cache-dir": "3.1.0", - "fs-extra": "10.0.0", + "fs-extra": "10.0.1", "lodash": "4.17.21" }, "dependencies": { @@ -1105,30 +1105,30 @@ } }, "@bundle-stats/html-templates": { - "version": "3.2.5", - "resolved": "https://registry.npmjs.org/@bundle-stats/html-templates/-/html-templates-3.2.5.tgz", - "integrity": "sha512-0GhDg4ycHUIchfIDg7ctVu5PY0X+vZplr5cF8vZYOfSwwPFErNKX7VdC7OutqV8fyD1YJIgVyKSiKqIcnSzubw==" + "version": "3.2.9", + "resolved": "https://registry.npmjs.org/@bundle-stats/html-templates/-/html-templates-3.2.9.tgz", + "integrity": "sha512-Tv6AOct9MdxckOPtjUie7SC7P0/FcL0JzKEC1/TrPIdMXYsJm4PZ6m5AVCR0i0ZtANboaqZCGtP/BAZAcgXVFg==" }, "@bundle-stats/plugin-webpack-filter": { - "version": "3.2.5", - "resolved": "https://registry.npmjs.org/@bundle-stats/plugin-webpack-filter/-/plugin-webpack-filter-3.2.5.tgz", - "integrity": "sha512-IYv3+CaNDPMC5Ahi2/lWSB1n4lQ5I7TAdnuVIx+D+a/vDbAcdwoK7mRA1m0NS+q5FkvVB9ceduszjcz9mu1kTA==" + "version": "3.2.9", + "resolved": "https://registry.npmjs.org/@bundle-stats/plugin-webpack-filter/-/plugin-webpack-filter-3.2.9.tgz", + "integrity": "sha512-ztasVzRike3o2GHePpig2AnYRM7ROMM/LJYp028wMUeb/Yi876l5l2KC2CDuyglR9WlQzlXuxKnsU/ViqVmIaw==" }, "@bundle-stats/plugin-webpack-validate": { - "version": "3.2.5", - "resolved": "https://registry.npmjs.org/@bundle-stats/plugin-webpack-validate/-/plugin-webpack-validate-3.2.5.tgz", - "integrity": "sha512-qQedULIJekmZgW/kwr2dGKrov4cbTAcvNBVcOLwGXydPaBYSg0Yv3vj+u6xKBw8+8dtFMfjhub0/F6Xy3EiV3w==", + "version": "3.2.9", + "resolved": "https://registry.npmjs.org/@bundle-stats/plugin-webpack-validate/-/plugin-webpack-validate-3.2.9.tgz", + "integrity": "sha512-Av8FVGUyvAlFgYFrNoScAYUCur7u2pltc5ye99ihjKGydyDIxt3FcPD+pDwZRkUVJacUxEfmQ5z6o/hh4iuOfA==", "requires": { "superstruct": "0.8.3" } }, "@bundle-stats/utils": { - "version": "3.2.5", - "resolved": "https://registry.npmjs.org/@bundle-stats/utils/-/utils-3.2.5.tgz", - "integrity": "sha512-vqShDX55ethe959OuEYQJN3hOd/4uRhb8XBkCSPQk7Hn5J3JT0nZU7AgHzIJfVrJJ+yPVqgRWOoyleZFWbuZWg==", + "version": "3.2.9", + "resolved": "https://registry.npmjs.org/@bundle-stats/utils/-/utils-3.2.9.tgz", + "integrity": "sha512-MGQ9rARkYhsWHpLxF+5uTkxDftF3gjPM3/cbwzG1daWQP/hvrL0U0cMuou+FhRyu5b/VAZuXstH9F1D0QgZRyw==", "requires": { - "@bundle-stats/plugin-webpack-filter": "^3.2.5", - "@bundle-stats/plugin-webpack-validate": "^3.2.5", + "@bundle-stats/plugin-webpack-filter": "^3.2.9", + "@bundle-stats/plugin-webpack-validate": "^3.2.9", "convert-units": "3.0.0-beta.2", "query-string": "7.1.1", "serialize-query-params": "1.3.6" @@ -1330,101 +1330,101 @@ "integrity": "sha512-9NET910DNaIPngYnLLPeg+Ogzqsi9uM4mSboU5y6p8S5DzMTVEsJZrawi+BoDNUVBa2DhJqQYUFvMDfgU062LQ==" }, "@swc/core": { - "version": "1.2.147", - "resolved": "https://registry.npmjs.org/@swc/core/-/core-1.2.147.tgz", - "integrity": "sha512-FXHgp2/vbiHjOCHLxaxAblLTAw8/sCe2wEfE/BmSAdHapm/ynEAWt6+5tN0t6rVs835lCJswBK1YVsRQvnNxYA==", - "requires": { - "@swc/core-android-arm-eabi": "1.2.147", - "@swc/core-android-arm64": "1.2.147", - "@swc/core-darwin-arm64": "1.2.147", - "@swc/core-darwin-x64": "1.2.147", - "@swc/core-freebsd-x64": "1.2.147", - "@swc/core-linux-arm-gnueabihf": "1.2.147", - "@swc/core-linux-arm64-gnu": "1.2.147", - "@swc/core-linux-arm64-musl": "1.2.147", - "@swc/core-linux-x64-gnu": "1.2.147", - "@swc/core-linux-x64-musl": "1.2.147", - "@swc/core-win32-arm64-msvc": "1.2.147", - "@swc/core-win32-ia32-msvc": "1.2.147", - "@swc/core-win32-x64-msvc": "1.2.147" + "version": "1.2.154", + "resolved": "https://registry.npmjs.org/@swc/core/-/core-1.2.154.tgz", + "integrity": "sha512-Wz61emNkLRnnbBriqV2DEn4oqfsanKeT5OrBw1ZpIXlZ1qx5h3ft5yuJm0jvSBj+oiTeX+BZcE4f2VEwE1xvqQ==", + "requires": { + "@swc/core-android-arm-eabi": "1.2.154", + "@swc/core-android-arm64": "1.2.154", + "@swc/core-darwin-arm64": "1.2.154", + "@swc/core-darwin-x64": "1.2.154", + "@swc/core-freebsd-x64": "1.2.154", + "@swc/core-linux-arm-gnueabihf": "1.2.154", + "@swc/core-linux-arm64-gnu": "1.2.154", + "@swc/core-linux-arm64-musl": "1.2.154", + "@swc/core-linux-x64-gnu": "1.2.154", + "@swc/core-linux-x64-musl": "1.2.154", + "@swc/core-win32-arm64-msvc": "1.2.154", + "@swc/core-win32-ia32-msvc": "1.2.154", + "@swc/core-win32-x64-msvc": "1.2.154" } }, "@swc/core-android-arm-eabi": { - "version": "1.2.147", - "resolved": "https://registry.npmjs.org/@swc/core-android-arm-eabi/-/core-android-arm-eabi-1.2.147.tgz", - "integrity": "sha512-WOCTic99tAlki8WO6FhaP+5uZQyTMoz50utb4+eqvKX3QKoNcVbjXrPr9m3dj+OP2LHXGebo8F4lT5gAhjsIAw==", + "version": "1.2.154", + "resolved": "https://registry.npmjs.org/@swc/core-android-arm-eabi/-/core-android-arm-eabi-1.2.154.tgz", + "integrity": "sha512-zwpOQ6EVHUQSK0AiwruRv/uwvLKBbj9wJ7n3Y6hipoeXYNGYzlDpuxsWzBgNtpLYozSKsL9ErByvNGWjR1uvRw==", "optional": true }, "@swc/core-android-arm64": { - "version": "1.2.147", - "resolved": "https://registry.npmjs.org/@swc/core-android-arm64/-/core-android-arm64-1.2.147.tgz", - "integrity": "sha512-cqfOZKR31k4HCy2qDUnpE1fZ+d9xqEicxxtpeAik580DBXZ0GAgFqwtjY5FLhTPhiXZBZnoZ61NtwL2jxfDj2w==", + "version": "1.2.154", + "resolved": "https://registry.npmjs.org/@swc/core-android-arm64/-/core-android-arm64-1.2.154.tgz", + "integrity": "sha512-MYNCY1KXYfcHPfkDdokVZqm5NqmQrhURXf9/PjpkDgcNu/7IDBxvPsFoBTq6Czl/FyEF1QyilfgoTpP/liyYNA==", "optional": true }, "@swc/core-darwin-arm64": { - "version": "1.2.147", - "resolved": "https://registry.npmjs.org/@swc/core-darwin-arm64/-/core-darwin-arm64-1.2.147.tgz", - "integrity": "sha512-k4vWk67QVARnk0NaxYAWC01Aa2oYLQegqOGFllnasZcu/T/mq8H6HWHXH9efkyGNQ5S1hkgunLC2ZMcD80Tsng==", + "version": "1.2.154", + "resolved": "https://registry.npmjs.org/@swc/core-darwin-arm64/-/core-darwin-arm64-1.2.154.tgz", + "integrity": "sha512-30Zpyp/RdR9ywJcneDYoESRdoJVI/mVMzTvWzPDHUpkABgPTXA4h53kL1e6oIYEp4uOkcKFFD4iAzbz1tj/vhw==", "optional": true }, "@swc/core-darwin-x64": { - "version": "1.2.147", - "resolved": "https://registry.npmjs.org/@swc/core-darwin-x64/-/core-darwin-x64-1.2.147.tgz", - "integrity": "sha512-Q7mRrgFbH7JXFAvQYqZlG0HIPy5jwAp/VGuPF9P9VPu+gZl+4oSBBCaU2cQW9FdNpdQhPJVBjq3T1Z0qK2x2ww==", + "version": "1.2.154", + "resolved": "https://registry.npmjs.org/@swc/core-darwin-x64/-/core-darwin-x64-1.2.154.tgz", + "integrity": "sha512-t3oRoDd3q2jlRdpCO1gG3GB6nbl0Z+jHFsIcKzdeBVhnG3R6pqOflA6GYrNEaIyskPf0WT5POcpBv38I7liyPQ==", "optional": true }, "@swc/core-freebsd-x64": { - "version": "1.2.147", - "resolved": "https://registry.npmjs.org/@swc/core-freebsd-x64/-/core-freebsd-x64-1.2.147.tgz", - "integrity": "sha512-DrCOvyRWNrpwOEqEOALwsiDJcG9Ll+EuwscefJCUPWI1nXMX4JyPVBkKG55LVrerBq/+Gqqpc3pOSjBj5BZJhg==", + "version": "1.2.154", + "resolved": "https://registry.npmjs.org/@swc/core-freebsd-x64/-/core-freebsd-x64-1.2.154.tgz", + "integrity": "sha512-YSQF9AekPRbQTPNNlaWmJqds1QfbS9qDDL9zyUcC2XVk5bAKQQMmVYSRTJm4aV6no2Vy+C5yQeuR2vDwVUUXvw==", "optional": true }, "@swc/core-linux-arm-gnueabihf": { - "version": "1.2.147", - "resolved": "https://registry.npmjs.org/@swc/core-linux-arm-gnueabihf/-/core-linux-arm-gnueabihf-1.2.147.tgz", - "integrity": "sha512-LVM/el40J+iHswbztd/GOcNuUDNwvu0vgAf9K8G9e7zNrMu3Mb0LIF2Ee9/LYk/iRWe+W1x0AsyBWCR0DNcyeA==", + "version": "1.2.154", + "resolved": "https://registry.npmjs.org/@swc/core-linux-arm-gnueabihf/-/core-linux-arm-gnueabihf-1.2.154.tgz", + "integrity": "sha512-xAg+eP7wsQ2I8jOPDmvbqe6N1UvjUWD1/1jq1zF3kCwH7352kZWljFdJ0WcojUN0pX5lyIl4QWN1xarhtprFhg==", "optional": true }, "@swc/core-linux-arm64-gnu": { - "version": "1.2.147", - "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-gnu/-/core-linux-arm64-gnu-1.2.147.tgz", - "integrity": "sha512-rPiDrgbjx7idgQ64aJ6TE58uahvGE2oGTA7il2RmtD5pxFK0E3QN569eJvmzBagrlU848ntB0LjazAGw3rqP9g==", + "version": "1.2.154", + "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-gnu/-/core-linux-arm64-gnu-1.2.154.tgz", + "integrity": "sha512-lxrZyD6sONGZsL/wgB4q65/U4lwdWHJv81NSp+ScjvNSKeSJz/a+fxMB7FVf/iEpCtZobLgFUZO+sRVtO2jH3g==", "optional": true }, "@swc/core-linux-arm64-musl": { - "version": "1.2.147", - "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-musl/-/core-linux-arm64-musl-1.2.147.tgz", - "integrity": "sha512-TilrlBVkRyXrHNlTJ2WPTped+eC9R0RGu6sxzkNzcMY1DDXYDUy+Z+clotFU7t286hQy46gEdKTofsNIRzwt0g==", + "version": "1.2.154", + "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-musl/-/core-linux-arm64-musl-1.2.154.tgz", + "integrity": "sha512-dnPzLhCHyTLAKmJYHq7W6WJ1Pp+0vnM4mX091EjN5Pw+JTSF1ItNAWya8n87PV3LaDz5sF0JqGwHEqAzgfokHg==", "optional": true }, "@swc/core-linux-x64-gnu": { - "version": "1.2.147", - "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-gnu/-/core-linux-x64-gnu-1.2.147.tgz", - "integrity": "sha512-Trp8xOc1jSlSryEqOqNhzffZxSLIpSgTCKQZTrpyrelP0egA0hvxZun6Nb7sF97G3GI0MKg6SPP0FZo6gvI3kw==", + "version": "1.2.154", + "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-gnu/-/core-linux-x64-gnu-1.2.154.tgz", + "integrity": "sha512-kdDxQxbt5ANoYXJE804GBJmh/ppiKWI996Ax2vuiUPUil9PtzIe5uxEAh/OwM9Tq+7YSfNcHUF2ZG/a6N7CvmA==", "optional": true }, "@swc/core-linux-x64-musl": { - "version": "1.2.147", - "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-musl/-/core-linux-x64-musl-1.2.147.tgz", - "integrity": "sha512-m1Zz8DIz7somKDoJFjxrCemTlF3OtfNbRH/o9l81CaoRXTT26FmVoIP0k9tVwA6K/qybXey3XH3TX75hjwH+pw==", + "version": "1.2.154", + "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-musl/-/core-linux-x64-musl-1.2.154.tgz", + "integrity": "sha512-g8GJCj2W4jla9R9EvbFnrEiykLK1utZLTQxi8TEx3Vjjv3iTDkA3VEq+JUHDZUzj8wsRcmxB2x23RxXXJ9PbtA==", "optional": true }, "@swc/core-win32-arm64-msvc": { - "version": "1.2.147", - "resolved": "https://registry.npmjs.org/@swc/core-win32-arm64-msvc/-/core-win32-arm64-msvc-1.2.147.tgz", - "integrity": "sha512-8e2lMEBWsv2+dY0m/9hIOJjc6wf6vl++E4D7SVNYYjZQ+m/npYO5/PSrbnGLONz4Zsz94i/nJIECjaNHIJCiNw==", + "version": "1.2.154", + "resolved": "https://registry.npmjs.org/@swc/core-win32-arm64-msvc/-/core-win32-arm64-msvc-1.2.154.tgz", + "integrity": "sha512-zRa0L56etjgK6YjIY3bh9XlT+Zf8tWgdGGkXqimm9RMMgGBrJ0e+Wg8j5LCM0a9YMONPNwqM1P9UK2i32AFM+Q==", "optional": true }, "@swc/core-win32-ia32-msvc": { - "version": "1.2.147", - "resolved": "https://registry.npmjs.org/@swc/core-win32-ia32-msvc/-/core-win32-ia32-msvc-1.2.147.tgz", - "integrity": "sha512-YzFhcBhFruZpFVbBXr2K5rglcVe9Lx/BQ9HDes3+NkQAB8K4EeunPtqBN67YgkdDqKTGORqkMWRtWMSTECJZqQ==", + "version": "1.2.154", + "resolved": "https://registry.npmjs.org/@swc/core-win32-ia32-msvc/-/core-win32-ia32-msvc-1.2.154.tgz", + "integrity": "sha512-Vojk27M5Dnpxw2Oh2D2mnTc8Jl2ZWpjOASYSwOZ+pM3qx1LWhVrTjR3NxZIMMlQ7uygE2GxjwolCVaknMDHXJw==", "optional": true }, "@swc/core-win32-x64-msvc": { - "version": "1.2.147", - "resolved": "https://registry.npmjs.org/@swc/core-win32-x64-msvc/-/core-win32-x64-msvc-1.2.147.tgz", - "integrity": "sha512-csRYCQVL0jJtDtJX3K7u0yqFkyq/APQGHPaPMxcTMGQllEY4yX93RyAHDGVVp1PdjQ+GSWnp2i+jcF3DnjYNIQ==", + "version": "1.2.154", + "resolved": "https://registry.npmjs.org/@swc/core-win32-x64-msvc/-/core-win32-x64-msvc-1.2.154.tgz", + "integrity": "sha512-8+x7yoLsw42VE/9b92yCigpmodMlKaMbUvmVtXFcmx/KpzdUpgN+5e4XfljkmYTBZTSYbwqGM8K2jceGsfZmLg==", "optional": true }, "@szmarczak/http-timer": { @@ -1525,6 +1525,15 @@ "integrity": "sha512-YATxVxgRqNH6nHEIsvg6k2Boc1JHI9ZbH5iWFFv/MTkchz3b1ieGDa5T0a9RznNdI0KhVbdbWSN+KWWrQZRxTw==", "dev": true }, + "@types/mini-css-extract-plugin": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/@types/mini-css-extract-plugin/-/mini-css-extract-plugin-2.5.1.tgz", + "integrity": "sha512-evjjtJttaUexgg3au9ZJFy76tV9mySwX3a4Jl82BuormBYluWLRt0xk2urWrhOdPgDWzulRFyotwYOJTmkSgKw==", + "dev": true, + "requires": { + "mini-css-extract-plugin": "*" + } + }, "@types/node": { "version": "17.0.21", "resolved": "https://registry.npmjs.org/@types/node/-/node-17.0.21.tgz", @@ -2098,12 +2107,12 @@ "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==" }, "bundle-stats-webpack-plugin": { - "version": "3.2.5", - "resolved": "https://registry.npmjs.org/bundle-stats-webpack-plugin/-/bundle-stats-webpack-plugin-3.2.5.tgz", - "integrity": "sha512-7SjMPkd2F9Ox+7tBIq4s9Q0teKd3HNXYvywE9SaJy8gmNgv2OxGoqKGQhJpK9zmCsf35M+kwz9+4A0zyHht0aQ==", + "version": "3.2.9", + "resolved": "https://registry.npmjs.org/bundle-stats-webpack-plugin/-/bundle-stats-webpack-plugin-3.2.9.tgz", + "integrity": "sha512-a9QQmDkh3eReRBUCmRQhvbjylS5z1yGNpInJn0EaaL6Bugmyw1YiAob6MCMqsDZF9wbRiOYGdiFL5SEOgxQgfQ==", "requires": { - "@bundle-stats/cli-utils": "^3.2.5", - "@bundle-stats/utils": "^3.2.5", + "@bundle-stats/cli-utils": "^3.2.9", + "@bundle-stats/utils": "^3.2.9", "core-js": "3.20.2", "lodash": "4.17.21" }, @@ -2592,6 +2601,31 @@ "postcss-selector-parser": "^6.0.9" } }, + "css-loader": { + "version": "6.7.1", + "resolved": "https://registry.npmjs.org/css-loader/-/css-loader-6.7.1.tgz", + "integrity": "sha512-yB5CNFa14MbPJcomwNh3wLThtkZgcNyI2bNMRt8iE5Z8Vwl7f8vQXFAzn2HDOJvtDq2NTZBUGMSUNNyrv3/+cw==", + "requires": { + "icss-utils": "^5.1.0", + "postcss": "^8.4.7", + "postcss-modules-extract-imports": "^3.0.0", + "postcss-modules-local-by-default": "^4.0.0", + "postcss-modules-scope": "^3.0.0", + "postcss-modules-values": "^4.0.0", + "postcss-value-parser": "^4.2.0", + "semver": "^7.3.5" + }, + "dependencies": { + "semver": { + "version": "7.3.5", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz", + "integrity": "sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==", + "requires": { + "lru-cache": "^6.0.0" + } + } + } + }, "css-minimizer-webpack-plugin": { "version": "3.4.1", "resolved": "https://registry.npmjs.org/css-minimizer-webpack-plugin/-/css-minimizer-webpack-plugin-3.4.1.tgz", @@ -3238,9 +3272,9 @@ "integrity": "sha1-PYyt2Q2XZWn6g1qx+OSyOhBWBac=" }, "fs-extra": { - "version": "10.0.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.0.0.tgz", - "integrity": "sha512-C5owb14u9eJwizKGdchcDUQeFtlSHHthBk8pbX9Vc1PFZrLombudjDnNns88aYslCyF6IY5SUw3Roz6xShcEIQ==", + "version": "10.0.1", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.0.1.tgz", + "integrity": "sha512-NbdoVMZso2Lsrn/QwLXOy6rm0ufY2zEOKCDzJR/0kBsb0E6qed0P3iYK+Ath3BfvXEeu4JhEtXLgILx5psUfag==", "requires": { "graceful-fs": "^4.2.0", "jsonfile": "^6.0.1", @@ -3436,6 +3470,11 @@ "safer-buffer": ">= 2.1.2 < 3" } }, + "icss-utils": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/icss-utils/-/icss-utils-5.1.0.tgz", + "integrity": "sha512-soFhflCVWLfRNOPU3iv5Z9VUdT44xFRbzjLsEzSr5AQmgqPMTHdU3PMT1Cf1ssx8fLNJDA1juftYl+PUcv3MqA==" + }, "ignore": { "version": "5.2.0", "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.0.tgz", @@ -3971,10 +4010,18 @@ "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-1.0.1.tgz", "integrity": "sha512-j5EctnkH7amfV/q5Hgmoal1g2QHFJRraOtmx0JpIqkxhBhI/lJSl1nMpQ45hVarwNETOoWEimndZ4QK0RHxuxQ==" }, + "mini-css-extract-plugin": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/mini-css-extract-plugin/-/mini-css-extract-plugin-2.6.0.tgz", + "integrity": "sha512-ndG8nxCEnAemsg4FSgS+yNyHKgkTB4nPKqCOgh65j3/30qqC5RaSQQXMm++Y6sb6E1zRSxPkztj9fqxhS1Eo6w==", + "requires": { + "schema-utils": "^4.0.0" + } + }, "mini-svg-data-uri": { - "version": "1.4.3", - "resolved": "https://registry.npmjs.org/mini-svg-data-uri/-/mini-svg-data-uri-1.4.3.tgz", - "integrity": "sha512-gSfqpMRC8IxghvMcxzzmMnWpXAChSA+vy4cia33RgerMS8Fex95akUyQZPbxJJmeBGiGmK7n/1OpUX8ksRjIdA==" + "version": "1.4.4", + "resolved": "https://registry.npmjs.org/mini-svg-data-uri/-/mini-svg-data-uri-1.4.4.tgz", + "integrity": "sha512-r9deDe9p5FJUPZAk3A59wGH7Ii9YrjjWw0jmw/liSbHl2CHiyXj6FcDXDu2K3TjVAXqiJdaw3xxwlZZr9E6nHg==" }, "minimatch": { "version": "3.1.2", @@ -4386,9 +4433,9 @@ } }, "postcss": { - "version": "8.4.7", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.7.tgz", - "integrity": "sha512-L9Ye3r6hkkCeOETQX6iOaWZgjp3LL6Lpqm6EtgbKrgqGGteRMNb9vzBfRL96YOSu8o7x3MfIH9Mo5cPJFGrW6A==", + "version": "8.4.8", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.8.tgz", + "integrity": "sha512-2tXEqGxrjvAO6U+CJzDL2Fk2kPHTv1jQsYkSoMeOis2SsYaXRO2COxTdQp99cYvif9JTXaAk9lYGc3VhJt7JPQ==", "requires": { "nanoid": "^3.3.1", "picocolors": "^1.0.0", @@ -4660,6 +4707,37 @@ "postcss-selector-parser": "^6.0.5" } }, + "postcss-modules-extract-imports": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/postcss-modules-extract-imports/-/postcss-modules-extract-imports-3.0.0.tgz", + "integrity": "sha512-bdHleFnP3kZ4NYDhuGlVK+CMrQ/pqUm8bx/oGL93K6gVwiclvX5x0n76fYMKuIGKzlABOy13zsvqjb0f92TEXw==" + }, + "postcss-modules-local-by-default": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/postcss-modules-local-by-default/-/postcss-modules-local-by-default-4.0.0.tgz", + "integrity": "sha512-sT7ihtmGSF9yhm6ggikHdV0hlziDTX7oFoXtuVWeDd3hHObNkcHRo9V3yg7vCAY7cONyxJC/XXCmmiHHcvX7bQ==", + "requires": { + "icss-utils": "^5.0.0", + "postcss-selector-parser": "^6.0.2", + "postcss-value-parser": "^4.1.0" + } + }, + "postcss-modules-scope": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/postcss-modules-scope/-/postcss-modules-scope-3.0.0.tgz", + "integrity": "sha512-hncihwFA2yPath8oZ15PZqvWGkWf+XUfQgUGamS4LqoP1anQLOsOJw0vr7J7IwLpoY9fatA2qiGUGmuZL0Iqlg==", + "requires": { + "postcss-selector-parser": "^6.0.4" + } + }, + "postcss-modules-values": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/postcss-modules-values/-/postcss-modules-values-4.0.0.tgz", + "integrity": "sha512-RDxHkAiEGI78gS2ofyvCsu7iycRv7oqw5xMWn9iMoR0N/7mf9D50ecQqUo5BZ9Zh2vH4bCUR/ktCqbB9m8vJjQ==", + "requires": { + "icss-utils": "^5.0.0" + } + }, "postcss-nesting": { "version": "10.1.2", "resolved": "https://registry.npmjs.org/postcss-nesting/-/postcss-nesting-10.1.2.tgz", diff --git a/packages/cli/package.json b/packages/cli/package.json index b8b93667a6..d907c0ad78 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -39,17 +39,18 @@ "@babel/preset-react": "^7.16.7", "@gatsbyjs/webpack-hot-middleware": "^2.25.2", "@pmmmwh/react-refresh-webpack-plugin": "^0.5.4", - "@swc/core": "^1.2.147", + "@swc/core": "^1.2.154", "@types/webpack": "^5.28.0", "babel-loader": "^8.2.3", "better-opn": "^3.0.2", - "bundle-stats-webpack-plugin": "^3.2.5", + "bundle-stats-webpack-plugin": "^3.2.9", "chalk": "^4.1.2", "cli-highlight": "^2.1.11", "cli-progress": "^3.10.0", "compression-webpack-plugin": "^9.2.0", "copy-webpack-plugin": "^10.2.4", "core-js": "^3.21.1", + "css-loader": "^6.7.1", "css-minimizer-webpack-plugin": "^3.4.1", "express": "^4.17.3", "express-static-gzip": "^2.1.5", @@ -57,10 +58,11 @@ "less": "^4.1.2", "less-loader": "^10.2.0", "messageformat": "^2.3.0", - "mini-svg-data-uri": "^1.4.3", + "mini-css-extract-plugin": "^2.6.0", + "mini-svg-data-uri": "^1.4.4", "nodemon": "^2.0.15", "open-editor": "^3.0.0", - "postcss": "^8.4.6", + "postcss": "^8.4.8", "postcss-flexbugs-fixes": "^5.0.2", "postcss-loader": "^6.2.1", "postcss-preset-env": "^7.4.2", @@ -80,6 +82,7 @@ "@ima/server": "^17.12.2", "@types/cli-progress": "^3.9.2", "@types/express": "^4.17.13", + "@types/mini-css-extract-plugin": "^2.5.1", "@types/nodemon": "^1.19.1", "@types/webpack-bundle-analyzer": "^4.4.1", "@types/webpack-dev-middleware": "^5.3.0", diff --git a/packages/cli/src/types.ts b/packages/cli/src/types.ts index c4be9edb6f..c9c2a52677 100644 --- a/packages/cli/src/types.ts +++ b/packages/cli/src/types.ts @@ -190,6 +190,7 @@ export type ImaConfig = { experiments?: { swc?: boolean; swcMinimizer?: boolean; + nativeCss?: boolean; }; }; diff --git a/packages/cli/src/webpack/config.ts b/packages/cli/src/webpack/config.ts index d44e31d2b3..564386f788 100644 --- a/packages/cli/src/webpack/config.ts +++ b/packages/cli/src/webpack/config.ts @@ -6,6 +6,7 @@ import ReactRefreshWebpackPlugin from '@pmmmwh/react-refresh-webpack-plugin'; import CompressionPlugin from 'compression-webpack-plugin'; import CopyPlugin from 'copy-webpack-plugin'; import CssMinimizerPlugin from 'css-minimizer-webpack-plugin'; +import MiniCssExtractPlugin from 'mini-css-extract-plugin'; import miniSVGDataURI from 'mini-svg-data-uri'; import TerserPlugin from 'terser-webpack-plugin'; import webpack, { @@ -36,7 +37,7 @@ export default async ( ctx: ImaConfigurationContext, imaConfig: ImaConfig ): Promise => { - const { rootDir, isServer, isEsVersion, name } = ctx; + const { rootDir, isServer, isEsVersion, name, processCss } = ctx; // Define helper variables derived from context const isDevEnv = ctx.environment === 'development'; @@ -72,7 +73,31 @@ export default async ( const getStyleLoaders = async ( useLessLoader = false ): Promise => { + if (!processCss) { + return ['null-loader']; + } + return [ + ...(!imaConfig.experiments?.nativeCss + ? [ + processCss && { + loader: MiniCssExtractPlugin.loader, + }, + { + loader: require.resolve('css-loader'), + options: { + modules: { + auto: true, + exportOnlyLocals: !processCss, + localIdentName: isDevEnv + ? '[path][name]__[local]--[hash:base64:5]' + : '[hash:base64]', + }, + sourceMap: useSourceMaps, + }, + }, + ] + : []), { loader: require.resolve('postcss-loader'), options: await imaConfig.postcss( @@ -119,6 +144,7 @@ export default async ( return { name, + dependencies: [], target: isServer ? 'node16' : isEsVersion @@ -500,19 +526,19 @@ export default async ( /** * CSS & LESS loaders, both have the exact same capabilities */ - ...(ctx.processCss + ...(processCss ? [ { test: /\.less$/, - type: 'css', sideEffects: true, use: await getStyleLoaders(true), + ...(imaConfig.experiments?.nativeCss && { type: 'css' }), }, { test: /\.css$/, - type: 'css', sideEffects: true, use: await getStyleLoaders(), + ...(imaConfig.experiments?.nativeCss && { type: 'css' }), }, ] : []), @@ -560,6 +586,16 @@ export default async ( ] : // Client-specific plugins [ + processCss && + new MiniCssExtractPlugin({ + filename: ({ chunk }) => + `static/css/${chunk?.name === name ? 'app' : '[name]'}${ + !isDevEnv ? '.min' : '' + }.css`, + ignoreOrder: true, + chunkFilename: `static/css/[id]${!isDevEnv ? '.min' : ''}.css`, + }), + // Enables compression for assets in production build ...(ctx.command === 'build' ? imaConfig.compression.map( @@ -606,7 +642,7 @@ export default async ( // Enable native css support (this replaces mini-css-extract-plugin and css-loader) experiments: { - css: true, + css: !!imaConfig.experiments?.nativeCss, }, }; }; diff --git a/packages/cli/src/webpack/utils.ts b/packages/cli/src/webpack/utils.ts index d91dfa6e84..a0c508cf92 100644 --- a/packages/cli/src/webpack/utils.ts +++ b/packages/cli/src/webpack/utils.ts @@ -174,6 +174,7 @@ function createCacheKey( JSON.stringify({ experimentsSwc: imaConfig.experiments?.swc, experimentsSwcMinimizer: imaConfig.experiments?.swcMinimizer, + experimentsNativeCss: imaConfig.experiments?.nativeCss, command: ctx.command, forceSPA: ctx.forceSPA, profile: ctx.profile, diff --git a/packages/dev-utils/.npmignore b/packages/dev-utils/.npmignore new file mode 100644 index 0000000000..b948e13ae2 --- /dev/null +++ b/packages/dev-utils/.npmignore @@ -0,0 +1,3 @@ +* +!dist/**/* +!package.json diff --git a/packages/dev-utils/package.json b/packages/dev-utils/package.json index c2cabbfe2d..2fc6a53ee5 100644 --- a/packages/dev-utils/package.json +++ b/packages/dev-utils/package.json @@ -10,9 +10,6 @@ "build": "../../node_modules/.bin/tsc", "dev": "../../node_modules/.bin/tsc --watch" }, - "files": [ - "./dist" - ], "author": "Jan Šimeček ", "contributors": [], "repository": { diff --git a/packages/error-overlay/package.json b/packages/error-overlay/package.json index 17fc504ee2..ba2d907817 100644 --- a/packages/error-overlay/package.json +++ b/packages/error-overlay/package.json @@ -36,12 +36,10 @@ "clsx": "^1.1.1", "compression-webpack-plugin": "^9.2.0", "copy-webpack-plugin": "^10.2.0", - "css-loader": "^6.7.0", "css-minimizer-webpack-plugin": "^3.3.0", "easy-uid": "^2.0.2", "less": "^4.1.2", "less-loader": "^10.2.0", - "mini-css-extract-plugin": "^2.6.0", "postcss": "^8.4.7", "postcss-loader": "^6.2.1", "postcss-preset-env": "^7.4.2", diff --git a/packages/error-overlay/src/App.tsx b/packages/error-overlay/src/App.tsx index d09ce9743a..aa7bad5b23 100644 --- a/packages/error-overlay/src/App.tsx +++ b/packages/error-overlay/src/App.tsx @@ -16,7 +16,7 @@ const App: FunctionComponent = ({ serverError }) => { } return ( - +
= ({ children, type }) => { +const Overlay: FunctionComponent = ({ + children, + type, + animate = true, +}) => { return ( -
+
", "contributors": [], "repository": { diff --git a/packages/server/lib/error-view/index.ejs b/packages/server/lib/error-view/index.ejs index 801968229c..ff61dd9277 100644 --- a/packages/server/lib/error-view/index.ejs +++ b/packages/server/lib/error-view/index.ejs @@ -28,7 +28,7 @@ } const debouncedReload = debounce(() => window.location.reload(), 100); - const evtSource = new EventSource('http://<%= devServerPublic %>/__webpack_hmr'); + const evtSource = new EventSource('<%= devServerPublic %>/__webpack_hmr'); evtSource.addEventListener('message', () => { if (event.data && typeof event.data === 'string' && event.data.includes('action')) {