diff --git a/.github/workflows/style.yml b/.github/workflows/style.yml index 39b559f4ca..462ece303e 100644 --- a/.github/workflows/style.yml +++ b/.github/workflows/style.yml @@ -115,6 +115,11 @@ jobs: working-directory: ./web run: pnpm run knip + - name: Web build check + if: steps.changed-files.outputs.any_changed == 'true' + working-directory: ./web + run: pnpm run build + superlinter: name: SuperLinter runs-on: ubuntu-latest diff --git a/web/knip.config.ts b/web/knip.config.ts index 414b00fb7f..6ffda0316a 100644 --- a/web/knip.config.ts +++ b/web/knip.config.ts @@ -15,6 +15,10 @@ const config: KnipConfig = { ignoreBinaries: [ 'only-allow', ], + ignoreDependencies: [ + // required by next-pwa + 'babel-loader', + ], rules: { files: 'warn', dependencies: 'warn', diff --git a/web/package.json b/web/package.json index 0c6821ce86..7ee2325dbc 100644 --- a/web/package.json +++ b/web/package.json @@ -190,6 +190,7 @@ "@vitejs/plugin-react": "^5.1.2", "@vitest/coverage-v8": "4.0.16", "autoprefixer": "^10.4.21", + "babel-loader": "^10.0.0", "bing-translate-api": "^4.1.0", "code-inspector-plugin": "1.2.9", "cross-env": "^10.1.0", diff --git a/web/pnpm-lock.yaml b/web/pnpm-lock.yaml index 373e2e4020..cdd194da37 100644 --- a/web/pnpm-lock.yaml +++ b/web/pnpm-lock.yaml @@ -481,6 +481,9 @@ importers: autoprefixer: specifier: ^10.4.21 version: 10.4.22(postcss@8.5.6) + babel-loader: + specifier: ^10.0.0 + version: 10.0.0(@babel/core@7.28.5)(webpack@5.103.0(esbuild@0.25.0)(uglify-js@3.19.3)) bing-translate-api: specifier: ^4.1.0 version: 4.2.0 @@ -4265,6 +4268,13 @@ packages: peerDependencies: postcss: ^8.1.0 + babel-loader@10.0.0: + resolution: {integrity: sha512-z8jt+EdS61AMw22nSfoNJAZ0vrtmhPRVi6ghL3rCeRZI8cdNYFiV5xeV3HbE7rlZZNmGH8BVccwWt8/ED0QOHA==} + engines: {node: ^18.20.0 || ^20.10.0 || >=22.0.0} + peerDependencies: + '@babel/core': ^7.12.0 + webpack: '>=5.61.0' + babel-loader@8.4.1: resolution: {integrity: sha512-nXzRChX+Z1GoE6yWavBQg6jDslyFF3SDjl2paADuoQtQW10JqShJt62R6eJQ5m/pjJFDT8xgKIWSP85OY8eXeA==} engines: {node: '>= 8.9'} @@ -13080,6 +13090,12 @@ snapshots: postcss: 8.5.6 postcss-value-parser: 4.2.0 + babel-loader@10.0.0(@babel/core@7.28.5)(webpack@5.103.0(esbuild@0.25.0)(uglify-js@3.19.3)): + dependencies: + '@babel/core': 7.28.5 + find-up: 5.0.0 + webpack: 5.103.0(esbuild@0.25.0)(uglify-js@3.19.3) + babel-loader@8.4.1(@babel/core@7.28.5)(webpack@5.103.0(esbuild@0.25.0)(uglify-js@3.19.3)): dependencies: '@babel/core': 7.28.5