From afea0f098fcc9ae8c5697e9ee5153c97401b1275 Mon Sep 17 00:00:00 2001 From: neverland Date: Sun, 19 Jul 2026 17:44:57 +0800 Subject: [PATCH] fix: align example tsconfigs with TypeScript 7 --- pnpm-lock.yaml | 355 ++++++++++++++---- rsbuild/emotion/package.json | 1 + rsbuild/emotion/src/env.d.ts | 1 - rsbuild/emotion/tsconfig.json | 1 + rsbuild/express/package.json | 1 + rsbuild/fastify/package.json | 1 + rsbuild/lit/package.json | 1 + rsbuild/lit/src/env.d.ts | 1 - rsbuild/lit/tsconfig.json | 1 + .../consumer/package.json | 1 + .../consumer/src/remotes.d.ts | 6 + .../consumer/tsconfig.json | 1 + .../provider/package.json | 1 + .../provider/tsconfig.json | 1 + rsbuild/module-federation/host/package.json | 1 + rsbuild/module-federation/host/tsconfig.json | 2 + rsbuild/module-federation/remote/package.json | 1 + .../module-federation/remote/tsconfig.json | 2 + rsbuild/preact/package.json | 1 + rsbuild/preact/tsconfig.json | 1 + rsbuild/query-raw/package.json | 1 + rsbuild/query-raw/src/env.d.ts | 2 - rsbuild/query-raw/tsconfig.json | 1 + rsbuild/react-compiler-babel/package.json | 1 + rsbuild/react-compiler-babel/src/env.d.ts | 1 - rsbuild/react-compiler-babel/tsconfig.json | 1 + rsbuild/react-eslint/package.json | 1 + rsbuild/react-eslint/src/env.d.ts | 1 - rsbuild/react-eslint/tsconfig.json | 1 + rsbuild/react-mdx/package.json | 1 + rsbuild/react-mdx/src/env.d.ts | 2 - rsbuild/react-mdx/src/index.tsx | 2 +- rsbuild/react-mdx/tsconfig.json | 1 + rsbuild/react-tailwindcss/package.json | 1 + rsbuild/react-tailwindcss/src/env.d.ts | 1 - rsbuild/react-tailwindcss/tsconfig.json | 1 + rsbuild/react-unocss/package.json | 1 + rsbuild/react-unocss/tsconfig.json | 1 + rsbuild/react/package.json | 1 + rsbuild/react/src/env.d.ts | 1 - rsbuild/react/tsconfig.json | 1 + rsbuild/shadcn-ui/src/env.d.ts | 1 - rsbuild/shadcn-ui/tsconfig.json | 1 + rsbuild/solid/package.json | 1 + rsbuild/solid/src/env.d.ts | 1 - rsbuild/solid/tsconfig.json | 1 + .../ssr-express-with-manifest/package.json | 1 + .../ssr-express-with-manifest/src/env.d.ts | 1 - .../ssr-express-with-manifest/tsconfig.json | 1 + rsbuild/ssr-express/package.json | 1 + rsbuild/ssr-express/src/env.d.ts | 1 - rsbuild/ssr-express/tsconfig.json | 1 + rsbuild/ssr/package.json | 1 + rsbuild/ssr/src/env.d.ts | 1 - rsbuild/ssr/tsconfig.json | 1 + rsbuild/styled-components/package.json | 1 + rsbuild/styled-components/src/env.d.ts | 1 - rsbuild/styled-components/tsconfig.json | 1 + rsbuild/styled-jsx/package.json | 1 + rsbuild/styled-jsx/src/env.d.ts | 1 - rsbuild/styled-jsx/src/styled-jsx.d.ts | 1 - rsbuild/styled-jsx/tsconfig.json | 1 + rsbuild/stylex/package.json | 1 + rsbuild/stylex/src/env.d.ts | 1 - rsbuild/stylex/tsconfig.json | 1 + rsbuild/svelte/package.json | 1 + rsbuild/svelte/src/env.d.ts | 2 - rsbuild/svelte/tsconfig.json | 1 + rsbuild/tanstack-start-rsc/tsconfig.json | 2 +- rsbuild/tanstack-start-solid/tsconfig.json | 2 +- rsbuild/tanstack-start/tsconfig.json | 2 +- rsbuild/umd/package.json | 1 + rsbuild/umd/src/env.d.ts | 1 - rsbuild/umd/tsconfig.json | 1 + rsbuild/vanilla-extract/package.json | 1 + rsbuild/vanilla-extract/src/env.d.ts | 1 - rsbuild/vanilla-extract/tsconfig.json | 1 + rsbuild/vue-auto-import/package.json | 6 +- rsbuild/vue-auto-import/src/env.d.ts | 9 - rsbuild/vue-auto-import/tsconfig.json | 4 +- rsbuild/vue-element-plus/package.json | 6 +- rsbuild/vue-element-plus/src/env.d.ts | 9 - rsbuild/vue-element-plus/tsconfig.json | 5 +- rsbuild/vue-eslint/package.json | 6 +- rsbuild/vue-eslint/src/env.d.ts | 9 - rsbuild/vue-eslint/tsconfig.json | 4 +- rsbuild/vue-vant/package.json | 6 +- rsbuild/vue-vant/src/env.d.ts | 9 - rsbuild/vue-vant/tsconfig.json | 4 +- rsbuild/vue/package.json | 6 +- rsbuild/vue/src/env.d.ts | 9 - rsbuild/vue/tsconfig.json | 4 +- rsdoctor/rsbuild/package.json | 2 + rsdoctor/rsbuild/src/env.d.ts | 1 - rsdoctor/rsbuild/tsconfig.json | 1 + rsdoctor/rspack/package.json | 6 +- rsdoctor/rspack/src/assets.d.ts | 1 + rsdoctor/rspack/src/env.d.ts | 1 - rsdoctor/rspack/tsconfig.json | 1 + rslib/iife/tsconfig.json | 1 + rslib/module-doc/tsconfig.json | 1 + rslib/module-federation/mf-host/package.json | 1 + rslib/module-federation/mf-host/src/env.d.ts | 1 - rslib/module-federation/mf-host/tsconfig.json | 1 + .../stories/index.stories.tsx | 2 +- .../mf-react-component/tsconfig.json | 1 + .../module-federation/mf-remote/package.json | 1 + .../module-federation/mf-remote/src/env.d.ts | 1 - .../module-federation/mf-remote/tsconfig.json | 1 + rslib/node-basic/tsconfig.json | 1 + rslib/node-rstest/tsconfig.json | 1 + rslib/preact/tsconfig.json | 1 + rslib/react-basic/tsconfig.json | 1 + rslib/react-compiler/tsconfig.json | 1 + rslib/react-css-module/src/env.d.ts | 1 - rslib/react-css-module/tsconfig.json | 1 + rslib/react-less/src/env.d.ts | 1 - rslib/react-less/tsconfig.json | 1 + rslib/react-rstest/tsconfig.json | 1 + rslib/react-sass/src/env.d.ts | 1 - rslib/react-sass/tsconfig.json | 1 + rslib/react-storybook/tsconfig.json | 1 + rslib/react-tailwindcss-v3/tsconfig.json | 1 + rslib/react-tailwindcss/tsconfig.json | 1 + rslib/solid-basic/tsconfig.json | 1 + rslib/solid-rstest/tsconfig.json | 1 + rslib/umd/src/env.d.ts | 1 - rslib/umd/tsconfig.json | 1 + rslib/vue-basic/package.json | 2 +- rslib/vue-basic/tsconfig.json | 1 + rslib/vue-rstest/package.json | 2 +- rslib/vue-rstest/tests/tsconfig.json | 3 + rslib/vue-rstest/tsconfig.json | 1 + rslib/vue-storybook/package.json | 2 +- rslib/vue-storybook/tsconfig.json | 1 + rslib/web-worker/tsconfig.json | 1 + rspack/basic-ts-config/package.json | 1 + rspack/basic-ts-config/tsconfig.json | 2 + rspack/basic-ts/package.json | 3 +- rspack/basic-ts/tsconfig.json | 1 + rspack/cra-ts/package.json | 2 + rspack/javascript-api/src/index.ts | 4 +- rspack/javascript-api/tsconfig.json | 1 + rspack/monaco-editor-ts-react/package.json | 1 + rspack/monaco-editor-ts-react/src/assets.d.ts | 1 + rspack/monaco-editor-ts-react/tsconfig.json | 19 +- rspack/nest-alias/package.json | 3 + rspack/nest-alias/tsconfig.json | 1 + rspack/nestjs/package.json | 2 + rspack/nestjs/tsconfig.json | 3 +- rspack/react-compiler-babel-ts/package.json | 1 + .../react-compiler-babel-ts/src/assets.d.ts | 1 + rspack/react-compiler-babel-ts/tsconfig.json | 1 + .../react-refresh-babel-loader/package.json | 2 + rspack/react-refresh-esm/package.json | 2 + rspack/react-refresh/package.json | 2 + rspack/rspack-rsc/package.json | 1 + rspack/rspack-rsc/src/assets.d.ts | 11 + rspack/rspack-rsc/src/framework/entry.rsc.tsx | 10 +- rspack/rspack-rsc/tsconfig.json | 8 +- rspack/styled-components/package.json | 2 + rspack/svelte/src/assets.d.ts | 8 + rspack/svelte/src/env.d.ts | 1 - rspack/svelte/tsconfig.json | 1 + rspack/ts-checker-rspack-plugin/package.json | 1 + rspack/ts-checker-rspack-plugin/tsconfig.json | 1 + rspack/vanilla-extract-css/package.json | 1 + rspack/vanilla-extract-css/tsconfig.json | 1 + rspack/vue-tsx/global.d.ts | 1 + rspack/vue-tsx/package.json | 1 + rspack/vue-tsx/tsconfig.json | 15 +- rspress/basic/package.json | 3 +- rspress/custom-theme/package.json | 3 +- rstest/browser-rsbuild-react/package.json | 1 + rstest/browser-rsbuild-react/tsconfig.json | 7 +- rstest/browser-rsbuild-vanilla/package.json | 1 + rstest/browser-rsbuild-vanilla/tsconfig.json | 2 +- rstest/rsbuild-adapter/package.json | 1 + rstest/rsbuild-adapter/tsconfig.json | 3 +- rstest/rsbuild-preact/package.json | 1 + rstest/rsbuild-preact/tsconfig.json | 7 +- rstest/rsbuild-react/package.json | 1 + rstest/rsbuild-react/src/env.d.ts | 1 - rstest/rsbuild-react/tests/tsconfig.json | 2 +- rstest/rsbuild-react/tsconfig.json | 1 + rstest/rsbuild-solid/package.json | 1 + rstest/rsbuild-solid/tsconfig.json | 7 +- rstest/rsbuild-svelte/package.json | 1 + rstest/rsbuild-svelte/src/env.d.ts | 2 - rstest/rsbuild-svelte/tsconfig.json | 7 +- rstest/rslib-adapter/tsconfig.json | 1 - rstest/rspack-adapter/package.json | 1 + rstest/rspack-adapter/src/assets.d.ts | 5 + rstest/rspack-adapter/tests/tsconfig.json | 4 +- rstest/rspack-adapter/tsconfig.json | 1 + tsconfig.base.json | 4 +- 196 files changed, 560 insertions(+), 221 deletions(-) delete mode 100644 rsbuild/emotion/src/env.d.ts delete mode 100644 rsbuild/lit/src/env.d.ts create mode 100644 rsbuild/module-federation-enhanced/consumer/src/remotes.d.ts delete mode 100644 rsbuild/react-compiler-babel/src/env.d.ts delete mode 100644 rsbuild/react-eslint/src/env.d.ts delete mode 100644 rsbuild/react-tailwindcss/src/env.d.ts delete mode 100644 rsbuild/react/src/env.d.ts delete mode 100644 rsbuild/shadcn-ui/src/env.d.ts delete mode 100644 rsbuild/solid/src/env.d.ts delete mode 100644 rsbuild/ssr-express-with-manifest/src/env.d.ts delete mode 100644 rsbuild/ssr-express/src/env.d.ts delete mode 100644 rsbuild/ssr/src/env.d.ts delete mode 100644 rsbuild/styled-components/src/env.d.ts delete mode 100644 rsbuild/styled-jsx/src/env.d.ts delete mode 100644 rsbuild/styled-jsx/src/styled-jsx.d.ts delete mode 100644 rsbuild/stylex/src/env.d.ts delete mode 100644 rsbuild/svelte/src/env.d.ts delete mode 100644 rsbuild/umd/src/env.d.ts delete mode 100644 rsbuild/vanilla-extract/src/env.d.ts delete mode 100644 rsbuild/vue-auto-import/src/env.d.ts delete mode 100644 rsbuild/vue-element-plus/src/env.d.ts delete mode 100644 rsbuild/vue-eslint/src/env.d.ts delete mode 100644 rsbuild/vue-vant/src/env.d.ts delete mode 100644 rsbuild/vue/src/env.d.ts delete mode 100644 rsdoctor/rsbuild/src/env.d.ts create mode 100644 rsdoctor/rspack/src/assets.d.ts delete mode 100644 rsdoctor/rspack/src/env.d.ts delete mode 100644 rslib/module-federation/mf-host/src/env.d.ts delete mode 100644 rslib/module-federation/mf-remote/src/env.d.ts delete mode 100644 rslib/react-css-module/src/env.d.ts delete mode 100644 rslib/react-less/src/env.d.ts delete mode 100644 rslib/react-sass/src/env.d.ts delete mode 100644 rslib/umd/src/env.d.ts create mode 100644 rspack/monaco-editor-ts-react/src/assets.d.ts create mode 100644 rspack/react-compiler-babel-ts/src/assets.d.ts create mode 100644 rspack/rspack-rsc/src/assets.d.ts create mode 100644 rspack/svelte/src/assets.d.ts delete mode 100644 rspack/svelte/src/env.d.ts delete mode 100644 rstest/rsbuild-react/src/env.d.ts delete mode 100644 rstest/rsbuild-svelte/src/env.d.ts create mode 100644 rstest/rspack-adapter/src/assets.d.ts diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 060c47adf..f3a13222e 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -49,6 +49,9 @@ importers: '@swc/plugin-emotion': specifier: ^14.12.0 version: 14.12.0 + '@types/node': + specifier: ^24.12.4 + version: 24.12.4 '@types/react': specifier: ^19.2.15 version: 19.2.15 @@ -67,6 +70,9 @@ importers: '@types/express': specifier: ^5.0.6 version: 5.0.6 + '@types/node': + specifier: ^24.12.4 + version: 24.12.4 express: specifier: ^5.2.1 version: 5.2.1 @@ -82,6 +88,9 @@ importers: '@rsbuild/core': specifier: 2.1.6 version: 2.1.6(@module-federation/runtime-tools@2.5.0)(core-js@3.49.0) + '@types/node': + specifier: ^24.12.4 + version: 24.12.4 fastify: specifier: ^5.8.5 version: 5.8.5 @@ -94,6 +103,9 @@ importers: '@rsbuild/core': specifier: 2.1.6 version: 2.1.6(@module-federation/runtime-tools@2.5.0)(core-js@3.49.0) + '@types/node': + specifier: ^24.12.4 + version: 24.12.4 lit: specifier: ^3.3.3 version: 3.3.3 @@ -112,13 +124,16 @@ importers: devDependencies: '@module-federation/rsbuild-plugin': specifier: ^2.5.0 - version: 2.5.0(@rsbuild/core@2.1.6)(@rspack/core@2.1.4)(node-fetch@2.7.0)(typescript@5.9.3)(vue-tsc@3.3.3)(webpack@5.102.1) + version: 2.5.0(@rsbuild/core@2.1.6)(@rspack/core@2.1.4)(node-fetch@2.7.0)(typescript@5.9.3)(vue-tsc@3.3.7)(webpack@5.102.1) '@rsbuild/core': specifier: 2.1.6 version: 2.1.6(@module-federation/runtime-tools@2.5.0)(core-js@3.49.0) '@rsbuild/plugin-react': specifier: ^2.1.0 version: 2.1.0(@rsbuild/core@2.1.6)(@rspack/core@2.1.4) + '@types/node': + specifier: ^24.12.4 + version: 24.12.4 '@types/react': specifier: ^19.2.15 version: 19.2.15 @@ -140,13 +155,16 @@ importers: devDependencies: '@module-federation/rsbuild-plugin': specifier: ^2.5.0 - version: 2.5.0(@rsbuild/core@2.1.6)(@rspack/core@2.1.4)(node-fetch@2.7.0)(typescript@5.9.3)(vue-tsc@3.3.3)(webpack@5.102.1) + version: 2.5.0(@rsbuild/core@2.1.6)(@rspack/core@2.1.4)(node-fetch@2.7.0)(typescript@5.9.3)(vue-tsc@3.3.7)(webpack@5.102.1) '@rsbuild/core': specifier: 2.1.6 version: 2.1.6(@module-federation/runtime-tools@2.5.0)(core-js@3.49.0) '@rsbuild/plugin-react': specifier: ^2.1.0 version: 2.1.0(@rsbuild/core@2.1.6)(@rspack/core@2.1.4) + '@types/node': + specifier: ^24.12.4 + version: 24.12.4 '@types/react': specifier: ^19.2.15 version: 19.2.15 @@ -172,6 +190,9 @@ importers: '@rsbuild/plugin-react': specifier: ^2.1.0 version: 2.1.0(@rsbuild/core@2.1.6)(@rspack/core@2.1.4) + '@types/node': + specifier: ^24.12.4 + version: 24.12.4 typescript: specifier: ^5.9.3 version: 5.9.3 @@ -191,6 +212,9 @@ importers: '@rsbuild/plugin-react': specifier: ^2.1.0 version: 2.1.0(@rsbuild/core@2.1.6)(@rspack/core@2.1.4) + '@types/node': + specifier: ^24.12.4 + version: 24.12.4 typescript: specifier: ^5.9.3 version: 5.9.3 @@ -207,6 +231,9 @@ importers: '@rsbuild/plugin-preact': specifier: ^1.7.3 version: 1.7.3(@rsbuild/core@2.1.6)(preact@10.29.2) + '@types/node': + specifier: ^24.12.4 + version: 24.12.4 typescript: specifier: ^5.9.3 version: 5.9.3 @@ -226,6 +253,9 @@ importers: '@rsbuild/plugin-react': specifier: ^2.1.0 version: 2.1.0(@rsbuild/core@2.1.6)(@rspack/core@2.1.4) + '@types/node': + specifier: ^24.12.4 + version: 24.12.4 '@types/react': specifier: ^19.2.15 version: 19.2.15 @@ -251,6 +281,9 @@ importers: '@rsbuild/plugin-react': specifier: ^2.1.0 version: 2.1.0(@rsbuild/core@2.1.6)(@rspack/core@2.1.4) + '@types/node': + specifier: ^24.12.4 + version: 24.12.4 '@types/react': specifier: ^19.2.15 version: 19.2.15 @@ -279,6 +312,9 @@ importers: '@rsbuild/plugin-react': specifier: ^2.1.0 version: 2.1.0(@rsbuild/core@2.1.6)(@rspack/core@2.1.4) + '@types/node': + specifier: ^24.12.4 + version: 24.12.4 '@types/react': specifier: ^19.2.15 version: 19.2.15 @@ -310,6 +346,9 @@ importers: '@rsbuild/plugin-react': specifier: ^2.1.0 version: 2.1.0(@rsbuild/core@2.1.6)(@rspack/core@2.1.4) + '@types/node': + specifier: ^24.12.4 + version: 24.12.4 '@types/react': specifier: ^19.2.15 version: 19.2.15 @@ -350,6 +389,9 @@ importers: '@rsbuild/plugin-react': specifier: ^2.1.0 version: 2.1.0(@rsbuild/core@2.1.6)(@rspack/core@2.1.4) + '@types/node': + specifier: ^24.12.4 + version: 24.12.4 '@types/react': specifier: ^19.2.15 version: 19.2.15 @@ -381,6 +423,9 @@ importers: '@rsbuild/plugin-tailwindcss': specifier: ^2.0.1 version: 2.0.1(@rsbuild/core@2.1.6)(webpack@5.102.1) + '@types/node': + specifier: ^24.12.4 + version: 24.12.4 '@types/react': specifier: ^19.2.15 version: 19.2.15 @@ -406,6 +451,9 @@ importers: '@rsbuild/plugin-react': specifier: ^2.1.0 version: 2.1.0(@rsbuild/core@2.1.6)(@rspack/core@2.1.4) + '@types/node': + specifier: ^24.12.4 + version: 24.12.4 '@types/react': specifier: ^19.2.15 version: 19.2.15 @@ -489,6 +537,9 @@ importers: '@rsbuild/plugin-solid': specifier: ^1.2.1 version: 1.2.1(@babel/core@7.29.7)(@rsbuild/core@2.1.6)(solid-js@1.9.13) + '@types/node': + specifier: ^24.12.4 + version: 24.12.4 typescript: specifier: ^5.9.3 version: 5.9.3 @@ -508,6 +559,9 @@ importers: '@rsbuild/plugin-react': specifier: 2.1.0 version: 2.1.0(@rsbuild/core@2.1.6)(@rspack/core@2.1.4) + '@types/node': + specifier: ^24.12.4 + version: 24.12.4 '@types/react': specifier: ^19.2.15 version: 19.2.15 @@ -539,6 +593,9 @@ importers: '@types/express': specifier: ^5.0.6 version: 5.0.6 + '@types/node': + specifier: ^24.12.4 + version: 24.12.4 '@types/react': specifier: ^19.2.15 version: 19.2.15 @@ -573,6 +630,9 @@ importers: '@types/express': specifier: ^5.0.6 version: 5.0.6 + '@types/node': + specifier: ^24.12.4 + version: 24.12.4 '@types/react': specifier: ^19.2.15 version: 19.2.15 @@ -610,6 +670,9 @@ importers: '@rsbuild/plugin-styled-components': specifier: ^1.6.2 version: 1.6.2(@rsbuild/core@2.1.6) + '@types/node': + specifier: ^24.12.4 + version: 24.12.4 '@types/react': specifier: ^19.2.15 version: 19.2.15 @@ -641,6 +704,9 @@ importers: '@swc/plugin-styled-jsx': specifier: ^13.12.0 version: 13.12.0 + '@types/node': + specifier: ^24.12.4 + version: 24.12.4 '@types/react': specifier: ^19.2.15 version: 19.2.15 @@ -669,6 +735,9 @@ importers: '@rsbuild/plugin-react': specifier: ^2.1.0 version: 2.1.0(@rsbuild/core@2.1.6)(@rspack/core@2.1.4) + '@types/node': + specifier: ^24.12.4 + version: 24.12.4 '@types/react': specifier: ^19.2.15 version: 19.2.15 @@ -694,6 +763,9 @@ importers: '@rsbuild/plugin-svelte': specifier: ^1.1.2 version: 1.1.2(@babel/core@7.29.7)(@rsbuild/core@2.1.6)(less@4.6.4)(postcss-load-config@6.0.1)(postcss@8.5.15)(pug@3.0.2)(sass@1.100.0)(stylus@0.64.0)(svelte@5.56.0)(typescript@5.9.3) + '@types/node': + specifier: ^24.12.4 + version: 24.12.4 typescript: specifier: ^5.9.3 version: 5.9.3 @@ -850,6 +922,9 @@ importers: '@rsbuild/plugin-umd': specifier: ^1.0.7 version: 1.0.7(@rsbuild/core@2.1.6) + '@types/node': + specifier: ^24.12.4 + version: 24.12.4 typescript: specifier: ^5.9.3 version: 5.9.3 @@ -872,6 +947,9 @@ importers: '@rsbuild/plugin-react': specifier: ^2.1.0 version: 2.1.0(@rsbuild/core@2.1.6)(@rspack/core@2.1.4) + '@types/node': + specifier: ^24.12.4 + version: 24.12.4 '@types/react': specifier: ^19.2.15 version: 19.2.15 @@ -897,9 +975,15 @@ importers: '@rsbuild/plugin-vue': specifier: ^1.2.9 version: 1.2.9(@rsbuild/core@2.1.6)(@rspack/core@2.1.4)(vue@3.5.35) + '@types/node': + specifier: ^24.12.4 + version: 24.12.4 typescript: specifier: ^5.9.3 version: 5.9.3 + vue-tsc: + specifier: ^3.3.7 + version: 3.3.7(typescript@5.9.3) rsbuild/vue-auto-import: dependencies: @@ -913,12 +997,18 @@ importers: '@rsbuild/plugin-vue': specifier: ^1.2.9 version: 1.2.9(@rsbuild/core@2.1.6)(@rspack/core@2.1.4)(vue@3.5.35) + '@types/node': + specifier: ^24.12.4 + version: 24.12.4 typescript: specifier: ^5.9.3 version: 5.9.3 unplugin-auto-import: specifier: ^21.0.0 version: 21.0.0(@vueuse/core@14.3.0) + vue-tsc: + specifier: ^3.3.7 + version: 3.3.7(typescript@5.9.3) rsbuild/vue-element-plus: dependencies: @@ -935,6 +1025,9 @@ importers: '@rsbuild/plugin-vue': specifier: ^1.2.9 version: 1.2.9(@rsbuild/core@2.1.6)(@rspack/core@2.1.4)(vue@3.5.35) + '@types/node': + specifier: ^24.12.4 + version: 24.12.4 typescript: specifier: ^5.9.3 version: 5.9.3 @@ -944,6 +1037,9 @@ importers: unplugin-vue-components: specifier: ^31.1.0 version: 31.1.0(vue@3.5.35) + vue-tsc: + specifier: ^3.3.7 + version: 3.3.7(typescript@5.9.3) rsbuild/vue-eslint: dependencies: @@ -960,6 +1056,9 @@ importers: '@rsbuild/plugin-vue': specifier: ^1.2.9 version: 1.2.9(@rsbuild/core@2.1.6)(@rspack/core@2.1.4)(vue@3.5.35) + '@types/node': + specifier: ^24.12.4 + version: 24.12.4 '@typescript-eslint/eslint-plugin': specifier: ^8.60.0 version: 8.60.0(@typescript-eslint/parser@8.60.0)(eslint@9.39.4)(typescript@5.9.3) @@ -975,6 +1074,9 @@ importers: typescript: specifier: ^5.9.3 version: 5.9.3 + vue-tsc: + specifier: ^3.3.7 + version: 3.3.7(typescript@5.9.3) rsbuild/vue-vant: dependencies: @@ -994,6 +1096,9 @@ importers: '@rsbuild/plugin-vue': specifier: ^1.2.9 version: 1.2.9(@rsbuild/core@2.1.6)(@rspack/core@2.1.4)(vue@3.5.35) + '@types/node': + specifier: ^24.12.4 + version: 24.12.4 '@vant/auto-import-resolver': specifier: ^1.3.0 version: 1.3.0 @@ -1006,6 +1111,9 @@ importers: unplugin-vue-components: specifier: ^31.1.0 version: 31.1.0(vue@3.5.35) + vue-tsc: + specifier: ^3.3.7 + version: 3.3.7(typescript@5.9.3) rsdoctor/rsbuild: dependencies: @@ -1031,6 +1139,9 @@ importers: '@rsdoctor/rspack-plugin': specifier: ^1.5.12 version: 1.5.12(@emnapi/core@1.11.2)(@emnapi/runtime@1.11.2)(@rsbuild/core@2.1.6)(@rspack/core@2.1.4)(webpack@5.102.1) + '@types/node': + specifier: ^24.12.4 + version: 24.12.4 '@types/react': specifier: ^19.2.15 version: 19.2.15 @@ -1040,6 +1151,9 @@ importers: '@types/semver6': specifier: npm:@types/semver@7.7.1 version: '@types/semver@7.7.1' + '@types/semver7': + specifier: npm:@types/semver@7.7.1 + version: '@types/semver@7.7.1' typescript: specifier: ^5.9.3 version: 5.9.3 @@ -1077,15 +1191,27 @@ importers: '@rspack/plugin-react-refresh': specifier: ^2.0.1 version: 2.0.2(@rspack/core@2.1.4)(react-refresh@0.18.0) + '@types/node': + specifier: ^24.12.4 + version: 24.12.4 '@types/react': specifier: ^19.2.15 version: 19.2.15 '@types/react-dom': specifier: ^19.2.3 version: 19.2.3(@types/react@19.2.15) + '@types/semver6': + specifier: npm:@types/semver@7.7.1 + version: '@types/semver@7.7.1' + '@types/semver7': + specifier: npm:@types/semver@7.7.1 + version: '@types/semver@7.7.1' react-refresh: specifier: ^0.18.0 version: 0.18.0 + typescript: + specifier: ^5.9.3 + version: 5.9.3 rslib/iife: devDependencies: @@ -1146,13 +1272,16 @@ importers: devDependencies: '@module-federation/rsbuild-plugin': specifier: ^2.5.0 - version: 2.5.0(@rsbuild/core@2.1.6)(@rspack/core@2.1.4)(node-fetch@2.7.0)(typescript@5.9.3)(vue-tsc@3.3.3)(webpack@5.102.1) + version: 2.5.0(@rsbuild/core@2.1.6)(@rspack/core@2.1.4)(node-fetch@2.7.0)(typescript@5.9.3)(vue-tsc@3.3.7)(webpack@5.102.1) '@rsbuild/core': specifier: ~2.1.6 version: 2.1.6(@module-federation/runtime-tools@2.5.0)(core-js@3.49.0) '@rsbuild/plugin-react': specifier: ^2.1.0 version: 2.1.0(@rsbuild/core@2.1.6)(@rspack/core@2.1.4) + '@types/node': + specifier: ^24.12.4 + version: 24.12.4 '@types/react': specifier: ^19.2.15 version: 19.2.15 @@ -1167,13 +1296,13 @@ importers: devDependencies: '@module-federation/enhanced': specifier: ^2.5.0 - version: 2.5.0(@rspack/core@2.1.4)(node-fetch@2.7.0)(typescript@6.0.3)(vue-tsc@3.3.3)(webpack@5.102.1) + version: 2.5.0(@rspack/core@2.1.4)(node-fetch@2.7.0)(typescript@6.0.3)(vue-tsc@3.3.7)(webpack@5.102.1) '@module-federation/rsbuild-plugin': specifier: ^2.5.0 - version: 2.5.0(@rsbuild/core@2.1.6)(@rspack/core@2.1.4)(node-fetch@2.7.0)(typescript@6.0.3)(vue-tsc@3.3.3)(webpack@5.102.1) + version: 2.5.0(@rsbuild/core@2.1.6)(@rspack/core@2.1.4)(node-fetch@2.7.0)(typescript@6.0.3)(vue-tsc@3.3.7)(webpack@5.102.1) '@module-federation/storybook-addon': specifier: ^6.0.12 - version: 6.0.12(@module-federation/sdk@2.5.0)(@rsbuild/core@2.1.6)(@rspack/core@2.1.4)(node-fetch@2.7.0)(storybook@10.4.1)(typescript@6.0.3)(vue-tsc@3.3.3)(webpack-virtual-modules@0.6.2)(webpack@5.102.1) + version: 6.0.12(@module-federation/sdk@2.5.0)(@rsbuild/core@2.1.6)(@rspack/core@2.1.4)(node-fetch@2.7.0)(storybook@10.4.1)(typescript@6.0.3)(vue-tsc@3.3.7)(webpack-virtual-modules@0.6.2)(webpack@5.102.1) '@rsbuild/plugin-react': specifier: ^2.1.0 version: 2.1.0(@rsbuild/core@2.1.6)(@rspack/core@2.1.4) @@ -1216,13 +1345,16 @@ importers: devDependencies: '@module-federation/rsbuild-plugin': specifier: ^2.5.0 - version: 2.5.0(@rsbuild/core@2.1.6)(@rspack/core@2.1.4)(node-fetch@2.7.0)(typescript@5.9.3)(vue-tsc@3.3.3)(webpack@5.102.1) + version: 2.5.0(@rsbuild/core@2.1.6)(@rspack/core@2.1.4)(node-fetch@2.7.0)(typescript@5.9.3)(vue-tsc@3.3.7)(webpack@5.102.1) '@rsbuild/core': specifier: ~2.1.6 version: 2.1.6(@module-federation/runtime-tools@2.5.0)(core-js@3.49.0) '@rsbuild/plugin-react': specifier: ^2.1.0 version: 2.1.0(@rsbuild/core@2.1.6)(@rspack/core@2.1.4) + '@types/node': + specifier: ^24.12.4 + version: 24.12.4 '@types/react': specifier: ^19.2.15 version: 19.2.15 @@ -1637,8 +1769,8 @@ importers: specifier: ^3.5.35 version: 3.5.35(typescript@5.9.3) vue-tsc: - specifier: ^3.3.3 - version: 3.3.3(typescript@5.9.3) + specifier: ^3.3.7 + version: 3.3.7(typescript@5.9.3) rslib/vue-rstest: devDependencies: @@ -1670,8 +1802,8 @@ importers: specifier: ^3.5.35 version: 3.5.35(typescript@5.9.3) vue-tsc: - specifier: ^3.3.3 - version: 3.3.3(typescript@5.9.3) + specifier: ^3.3.7 + version: 3.3.7(typescript@5.9.3) rslib/vue-storybook: devDependencies: @@ -1706,8 +1838,8 @@ importers: specifier: ^3.5.35 version: 3.5.35(typescript@5.9.3) vue-tsc: - specifier: ^3.3.3 - version: 3.3.3(typescript@5.9.3) + specifier: ^3.3.7 + version: 3.3.7(typescript@5.9.3) rslib/web-worker: devDependencies: @@ -1748,6 +1880,9 @@ importers: '@rspack/dev-server': specifier: 2.1.0 version: 2.1.0(@rspack/core@2.1.4) + '@types/node': + specifier: ^24.12.4 + version: 24.12.4 rspack/basic-ts-config: devDependencies: @@ -1760,6 +1895,9 @@ importers: '@rspack/dev-server': specifier: 2.1.0 version: 2.1.0(@rspack/core@2.1.4) + '@types/node': + specifier: ^24.12.4 + version: 24.12.4 typescript: specifier: ^5.9.3 version: 5.9.3 @@ -1921,6 +2059,12 @@ importers: '@rspack/plugin-react-refresh': specifier: ^2.0.1 version: 2.0.2(@rspack/core@2.1.4)(react-refresh@0.18.0) + '@types/react': + specifier: ^19.2.15 + version: 19.2.15 + '@types/react-dom': + specifier: ^19.2.3 + version: 19.2.3(@types/react@19.2.15) react-refresh: specifier: ^0.18.0 version: 0.18.0 @@ -2586,6 +2730,9 @@ importers: '@rspack/dev-server': specifier: 2.1.0 version: 2.1.0(@rspack/core@2.1.4) + '@types/node': + specifier: ^24.12.4 + version: 24.12.4 '@types/react': specifier: ^19.2.15 version: 19.2.15 @@ -2646,6 +2793,10 @@ importers: typescript: specifier: ^5.9.3 version: 5.9.3 + devDependencies: + '@types/node': + specifier: ^24.12.4 + version: 24.12.4 rspack/nestjs: dependencies: @@ -2677,9 +2828,15 @@ importers: '@rspack/dev-server': specifier: 2.1.0 version: 2.1.0(@rspack/core@2.1.4) + '@types/node': + specifier: ^24.12.4 + version: 24.12.4 cross-env: specifier: 10.1.0 version: 10.1.0 + typescript: + specifier: ^5.9.3 + version: 5.9.3 webpack-node-externals: specifier: 3.0.0 version: 3.0.0 @@ -2970,6 +3127,9 @@ importers: '@rspack/dev-server': specifier: 2.1.0 version: 2.1.0(@rspack/core@2.1.4) + '@types/node': + specifier: ^24.12.4 + version: 24.12.4 '@types/react': specifier: ^19.2.15 version: 19.2.15 @@ -3007,6 +3167,12 @@ importers: '@rspack/plugin-react-refresh': specifier: ^2.0.1 version: 2.0.2(@rspack/core@2.1.4)(react-refresh@0.18.0) + '@types/react': + specifier: ^19.2.15 + version: 19.2.15 + '@types/react-dom': + specifier: ^19.2.3 + version: 19.2.3(@types/react@19.2.15) react-refresh: specifier: 0.18.0 version: 0.18.0 @@ -3041,6 +3207,12 @@ importers: '@rspack/plugin-react-refresh': specifier: ^2.0.1 version: 2.0.2(@rspack/core@2.1.4)(react-refresh@0.18.0) + '@types/react': + specifier: ^19.2.15 + version: 19.2.15 + '@types/react-dom': + specifier: ^19.2.3 + version: 19.2.3(@types/react@19.2.15) babel-loader: specifier: ^10.1.1 version: 10.1.1(@babel/core@7.29.7)(@rspack/core@2.1.4)(webpack@5.102.1) @@ -3069,6 +3241,12 @@ importers: '@rspack/plugin-react-refresh': specifier: ^2.0.1 version: 2.0.2(@rspack/core@2.1.4)(react-refresh@0.18.0) + '@types/react': + specifier: ^19.2.15 + version: 19.2.15 + '@types/react-dom': + specifier: ^19.2.3 + version: 19.2.3(@types/react@19.2.15) react-refresh: specifier: 0.18.0 version: 0.18.0 @@ -3401,6 +3579,12 @@ importers: '@rspack/dev-server': specifier: 2.1.0 version: 2.1.0(@rspack/core@2.1.4) + '@types/react': + specifier: ^19.2.15 + version: 19.2.15 + '@types/react-dom': + specifier: ^19.2.3 + version: 19.2.3(@types/react@19.2.15) react-refresh: specifier: ^0.18.0 version: 0.18.0 @@ -3579,6 +3763,9 @@ importers: '@rspack/dev-server': specifier: 2.1.0 version: 2.1.0(@rspack/core@2.1.4) + '@types/node': + specifier: ^24.12.4 + version: 24.12.4 ts-checker-rspack-plugin: specifier: ^1.3.1 version: 1.3.1(@rspack/core@2.1.4)(tslib@2.8.1)(typescript@5.9.3) @@ -3659,6 +3846,9 @@ importers: specifier: 3.4.19 version: 3.4.19(tsx@4.19.2)(yaml@2.9.0) devDependencies: + '@types/node': + specifier: ^24.12.4 + version: 24.12.4 '@types/react': specifier: ^19.2.15 version: 19.2.15 @@ -3740,6 +3930,9 @@ importers: '@rspack/dev-server': specifier: 2.1.0 version: 2.1.0(@rspack/core@2.1.4) + '@types/node': + specifier: ^24.12.4 + version: 24.12.4 '@vue/babel-plugin-jsx': specifier: 2.0.1 version: 2.0.1(@babel/core@7.29.7) @@ -3893,6 +4086,9 @@ importers: react-dom: specifier: ^19.2.7 version: 19.2.7(react@19.2.7) + typescript: + specifier: ^5.9.3 + version: 5.9.3 rspress/custom-theme: dependencies: @@ -3915,6 +4111,9 @@ importers: react-dom: specifier: ^19.2.7 version: 19.2.7(react@19.2.7) + typescript: + specifier: ^5.9.3 + version: 5.9.3 rstest/browser-locator: devDependencies: @@ -3981,6 +4180,9 @@ importers: '@testing-library/user-event': specifier: ^14.6.1 version: 14.6.1(@testing-library/dom@10.4.1) + '@types/node': + specifier: ^24.12.4 + version: 24.12.4 '@types/react': specifier: ^19.2.15 version: 19.2.15 @@ -4011,6 +4213,9 @@ importers: '@rstest/core': specifier: ^0.10.3 version: 0.10.3(@module-federation/runtime-tools@2.5.0)(core-js@3.49.0)(happy-dom@20.9.0)(jsdom@27.4.0) + '@types/node': + specifier: ^24.12.4 + version: 24.12.4 playwright: specifier: ^1.60.0 version: 1.60.0 @@ -4059,6 +4264,9 @@ importers: '@rstest/core': specifier: ^0.10.3 version: 0.10.3(@module-federation/runtime-tools@2.5.0)(core-js@3.49.0)(happy-dom@20.9.0)(jsdom@27.4.0) + '@types/node': + specifier: ^24.12.4 + version: 24.12.4 happy-dom: specifier: ^20.9.0 version: 20.9.0 @@ -4080,6 +4288,9 @@ importers: '@rstest/core': specifier: ^0.10.3 version: 0.10.3(@module-federation/runtime-tools@2.5.0)(core-js@3.49.0)(happy-dom@20.9.0)(jsdom@27.4.0) + '@types/node': + specifier: ^24.12.4 + version: 24.12.4 happy-dom: specifier: ^20.9.0 version: 20.9.0 @@ -4114,6 +4325,9 @@ importers: '@testing-library/react': specifier: ^16.3.2 version: 16.3.2(@testing-library/dom@10.4.1)(@types/react-dom@19.2.3)(@types/react@19.2.15)(react-dom@19.2.7)(react@19.2.7) + '@types/node': + specifier: ^24.12.4 + version: 24.12.4 '@types/react': specifier: ^19.2.15 version: 19.2.15 @@ -4141,6 +4355,9 @@ importers: '@rstest/core': specifier: ^0.10.3 version: 0.10.3(@module-federation/runtime-tools@2.5.0)(core-js@3.49.0)(happy-dom@20.9.0)(jsdom@27.4.0) + '@types/node': + specifier: ^24.12.4 + version: 24.12.4 happy-dom: specifier: ^20.9.0 version: 20.9.0 @@ -4165,6 +4382,9 @@ importers: '@rstest/core': specifier: ^0.10.3 version: 0.10.3(@module-federation/runtime-tools@2.5.0)(core-js@3.49.0)(happy-dom@20.9.0)(jsdom@27.4.0) + '@types/node': + specifier: ^24.12.4 + version: 24.12.4 happy-dom: specifier: ^20.9.0 version: 20.9.0 @@ -4226,6 +4446,9 @@ importers: '@testing-library/react': specifier: ^16.3.2 version: 16.3.2(@testing-library/dom@10.4.1)(@types/react-dom@19.2.3)(@types/react@19.2.15)(react-dom@19.2.7)(react@19.2.7) + '@types/node': + specifier: ^24.12.4 + version: 24.12.4 '@types/react': specifier: ^19.2.15 version: 19.2.15 @@ -9017,8 +9240,8 @@ packages: '@vue/compiler-ssr@3.5.35': resolution: {integrity: sha512-rGhAeXgdM7/ffTJGXT69rCCdTmjDewnFuUZfBQQHTdcEBeWdT5HCGY60y2ytLJr9/Dsu7IntUi5z/w0h6Rjnzw==} - '@vue/language-core@3.3.3': - resolution: {integrity: sha512-X6p+7nfY7vVT6dQwUJ+v0Jfq/lwIfhL2jMi91dQ3ln4hnlGXlxsDu/FNkeyHYgvYtyQy18ZX76IZy7X4diDbiQ==} + '@vue/language-core@3.3.7': + resolution: {integrity: sha512-LzmkKinXAMMoh8Jfi/jMUSDUjuPdv8mynH5WJGKfXyZtDw3hQ6GBaoI6Bcnl/Xqlu32q/0Z6i/trp4VXykzyLw==} '@vue/reactivity@3.5.35': resolution: {integrity: sha512-tVc+SsHConvh/Lz64qq1pP3rYArBmK42xonovEcxY74SQtvctZodG/zhq54P5dr38cVuw25d27cPNRdlMidpGQ==} @@ -15178,8 +15401,8 @@ packages: vue-template-compiler@2.7.16: resolution: {integrity: sha512-AYbUWAJHLGGQM7+cNTELw+KsOG9nl2CnSv467WobS5Cv9uk3wFcnr1Etsz2sEIHEZvw1U+o9mRlEO6QbZvUPGQ==} - vue-tsc@3.3.3: - resolution: {integrity: sha512-SWUEG7YRUeDJHT7Xsuhf02elYX2gxPzzAII7OxDAh4KNOr4QHQ0Lls0YfnaO5GNd560CwVa2HTfdqmA5MqvRqQ==} + vue-tsc@3.3.7: + resolution: {integrity: sha512-+C+rgD49wAQ5bUTl2sp5a8Bzg4YoldMNXM+g7CFe604MYcQ8PrZPMQhIjJSzKXtPBCa+C5ayMipqjbA7splekQ==} hasBin: true peerDependencies: typescript: '>=5.0.0' @@ -17254,9 +17477,9 @@ snapshots: transitivePeerDependencies: - node-fetch - '@module-federation/cli@2.5.0(node-fetch@2.7.0)(typescript@5.9.3)(vue-tsc@3.3.3)': + '@module-federation/cli@2.5.0(node-fetch@2.7.0)(typescript@5.9.3)(vue-tsc@3.3.7)': dependencies: - '@module-federation/dts-plugin': 2.5.0(node-fetch@2.7.0)(typescript@5.9.3)(vue-tsc@3.3.3) + '@module-federation/dts-plugin': 2.5.0(node-fetch@2.7.0)(typescript@5.9.3)(vue-tsc@3.3.7) '@module-federation/sdk': 2.5.0(node-fetch@2.7.0) commander: 11.1.0 jiti: 2.4.2 @@ -17267,9 +17490,9 @@ snapshots: - utf-8-validate - vue-tsc - '@module-federation/cli@2.5.0(node-fetch@2.7.0)(typescript@6.0.3)(vue-tsc@3.3.3)': + '@module-federation/cli@2.5.0(node-fetch@2.7.0)(typescript@6.0.3)(vue-tsc@3.3.7)': dependencies: - '@module-federation/dts-plugin': 2.5.0(node-fetch@2.7.0)(typescript@6.0.3)(vue-tsc@3.3.3) + '@module-federation/dts-plugin': 2.5.0(node-fetch@2.7.0)(typescript@6.0.3)(vue-tsc@3.3.7) '@module-federation/sdk': 2.5.0(node-fetch@2.7.0) commander: 11.1.0 jiti: 2.4.2 @@ -17280,7 +17503,7 @@ snapshots: - utf-8-validate - vue-tsc - '@module-federation/dts-plugin@2.5.0(node-fetch@2.7.0)(typescript@5.9.3)(vue-tsc@3.3.3)': + '@module-federation/dts-plugin@2.5.0(node-fetch@2.7.0)(typescript@5.9.3)(vue-tsc@3.3.7)': dependencies: '@module-federation/error-codes': 2.5.0 '@module-federation/managers': 2.5.0(node-fetch@2.7.0) @@ -17294,13 +17517,13 @@ snapshots: undici: 7.24.7 ws: 8.18.0 optionalDependencies: - vue-tsc: 3.3.3(typescript@5.9.3) + vue-tsc: 3.3.7(typescript@5.9.3) transitivePeerDependencies: - bufferutil - node-fetch - utf-8-validate - '@module-federation/dts-plugin@2.5.0(node-fetch@2.7.0)(typescript@6.0.3)(vue-tsc@3.3.3)': + '@module-federation/dts-plugin@2.5.0(node-fetch@2.7.0)(typescript@6.0.3)(vue-tsc@3.3.7)': dependencies: '@module-federation/error-codes': 2.5.0 '@module-federation/managers': 2.5.0(node-fetch@2.7.0) @@ -17314,22 +17537,22 @@ snapshots: undici: 7.24.7 ws: 8.18.0 optionalDependencies: - vue-tsc: 3.3.3(typescript@6.0.3) + vue-tsc: 3.3.7(typescript@6.0.3) transitivePeerDependencies: - bufferutil - node-fetch - utf-8-validate - '@module-federation/enhanced@2.5.0(@rspack/core@2.1.4)(node-fetch@2.7.0)(typescript@5.9.3)(vue-tsc@3.3.3)(webpack@5.102.1)': + '@module-federation/enhanced@2.5.0(@rspack/core@2.1.4)(node-fetch@2.7.0)(typescript@5.9.3)(vue-tsc@3.3.7)(webpack@5.102.1)': dependencies: '@module-federation/bridge-react-webpack-plugin': 2.5.0(node-fetch@2.7.0) - '@module-federation/cli': 2.5.0(node-fetch@2.7.0)(typescript@5.9.3)(vue-tsc@3.3.3) - '@module-federation/dts-plugin': 2.5.0(node-fetch@2.7.0)(typescript@5.9.3)(vue-tsc@3.3.3) + '@module-federation/cli': 2.5.0(node-fetch@2.7.0)(typescript@5.9.3)(vue-tsc@3.3.7) + '@module-federation/dts-plugin': 2.5.0(node-fetch@2.7.0)(typescript@5.9.3)(vue-tsc@3.3.7) '@module-federation/error-codes': 2.5.0 '@module-federation/inject-external-runtime-core-plugin': 2.5.0(@module-federation/runtime-tools@2.5.0) '@module-federation/managers': 2.5.0(node-fetch@2.7.0) - '@module-federation/manifest': 2.5.0(node-fetch@2.7.0)(typescript@5.9.3)(vue-tsc@3.3.3) - '@module-federation/rspack': 2.5.0(@rspack/core@2.1.4)(node-fetch@2.7.0)(typescript@5.9.3)(vue-tsc@3.3.3) + '@module-federation/manifest': 2.5.0(node-fetch@2.7.0)(typescript@5.9.3)(vue-tsc@3.3.7) + '@module-federation/rspack': 2.5.0(@rspack/core@2.1.4)(node-fetch@2.7.0)(typescript@5.9.3)(vue-tsc@3.3.7) '@module-federation/runtime-tools': 2.5.0(node-fetch@2.7.0) '@module-federation/sdk': 2.5.0(node-fetch@2.7.0) '@module-federation/webpack-bundler-runtime': 2.5.0(node-fetch@2.7.0) @@ -17338,7 +17561,7 @@ snapshots: upath: 2.0.1 optionalDependencies: typescript: 5.9.3 - vue-tsc: 3.3.3(typescript@5.9.3) + vue-tsc: 3.3.7(typescript@5.9.3) webpack: 5.102.1 transitivePeerDependencies: - '@rspack/core' @@ -17346,16 +17569,16 @@ snapshots: - node-fetch - utf-8-validate - '@module-federation/enhanced@2.5.0(@rspack/core@2.1.4)(node-fetch@2.7.0)(typescript@6.0.3)(vue-tsc@3.3.3)(webpack@5.102.1)': + '@module-federation/enhanced@2.5.0(@rspack/core@2.1.4)(node-fetch@2.7.0)(typescript@6.0.3)(vue-tsc@3.3.7)(webpack@5.102.1)': dependencies: '@module-federation/bridge-react-webpack-plugin': 2.5.0(node-fetch@2.7.0) - '@module-federation/cli': 2.5.0(node-fetch@2.7.0)(typescript@6.0.3)(vue-tsc@3.3.3) - '@module-federation/dts-plugin': 2.5.0(node-fetch@2.7.0)(typescript@6.0.3)(vue-tsc@3.3.3) + '@module-federation/cli': 2.5.0(node-fetch@2.7.0)(typescript@6.0.3)(vue-tsc@3.3.7) + '@module-federation/dts-plugin': 2.5.0(node-fetch@2.7.0)(typescript@6.0.3)(vue-tsc@3.3.7) '@module-federation/error-codes': 2.5.0 '@module-federation/inject-external-runtime-core-plugin': 2.5.0(@module-federation/runtime-tools@2.5.0) '@module-federation/managers': 2.5.0(node-fetch@2.7.0) - '@module-federation/manifest': 2.5.0(node-fetch@2.7.0)(typescript@6.0.3)(vue-tsc@3.3.3) - '@module-federation/rspack': 2.5.0(@rspack/core@2.1.4)(node-fetch@2.7.0)(typescript@6.0.3)(vue-tsc@3.3.3) + '@module-federation/manifest': 2.5.0(node-fetch@2.7.0)(typescript@6.0.3)(vue-tsc@3.3.7) + '@module-federation/rspack': 2.5.0(@rspack/core@2.1.4)(node-fetch@2.7.0)(typescript@6.0.3)(vue-tsc@3.3.7) '@module-federation/runtime-tools': 2.5.0(node-fetch@2.7.0) '@module-federation/sdk': 2.5.0(node-fetch@2.7.0) '@module-federation/webpack-bundler-runtime': 2.5.0(node-fetch@2.7.0) @@ -17364,7 +17587,7 @@ snapshots: upath: 2.0.1 optionalDependencies: typescript: 6.0.3 - vue-tsc: 3.3.3(typescript@6.0.3) + vue-tsc: 3.3.7(typescript@6.0.3) webpack: 5.102.1(lightningcss@1.32.0) transitivePeerDependencies: - '@rspack/core' @@ -17387,9 +17610,9 @@ snapshots: transitivePeerDependencies: - node-fetch - '@module-federation/manifest@2.5.0(node-fetch@2.7.0)(typescript@5.9.3)(vue-tsc@3.3.3)': + '@module-federation/manifest@2.5.0(node-fetch@2.7.0)(typescript@5.9.3)(vue-tsc@3.3.7)': dependencies: - '@module-federation/dts-plugin': 2.5.0(node-fetch@2.7.0)(typescript@5.9.3)(vue-tsc@3.3.3) + '@module-federation/dts-plugin': 2.5.0(node-fetch@2.7.0)(typescript@5.9.3)(vue-tsc@3.3.7) '@module-federation/managers': 2.5.0(node-fetch@2.7.0) '@module-federation/sdk': 2.5.0(node-fetch@2.7.0) find-pkg: 2.0.0 @@ -17400,9 +17623,9 @@ snapshots: - utf-8-validate - vue-tsc - '@module-federation/manifest@2.5.0(node-fetch@2.7.0)(typescript@6.0.3)(vue-tsc@3.3.3)': + '@module-federation/manifest@2.5.0(node-fetch@2.7.0)(typescript@6.0.3)(vue-tsc@3.3.7)': dependencies: - '@module-federation/dts-plugin': 2.5.0(node-fetch@2.7.0)(typescript@6.0.3)(vue-tsc@3.3.3) + '@module-federation/dts-plugin': 2.5.0(node-fetch@2.7.0)(typescript@6.0.3)(vue-tsc@3.3.7) '@module-federation/managers': 2.5.0(node-fetch@2.7.0) '@module-federation/sdk': 2.5.0(node-fetch@2.7.0) find-pkg: 2.0.0 @@ -17413,9 +17636,9 @@ snapshots: - utf-8-validate - vue-tsc - '@module-federation/node@2.7.43(@rspack/core@2.1.4)(typescript@5.9.3)(vue-tsc@3.3.3)(webpack@5.102.1)': + '@module-federation/node@2.7.43(@rspack/core@2.1.4)(typescript@5.9.3)(vue-tsc@3.3.7)(webpack@5.102.1)': dependencies: - '@module-federation/enhanced': 2.5.0(@rspack/core@2.1.4)(node-fetch@2.7.0)(typescript@5.9.3)(vue-tsc@3.3.3)(webpack@5.102.1) + '@module-federation/enhanced': 2.5.0(@rspack/core@2.1.4)(node-fetch@2.7.0)(typescript@5.9.3)(vue-tsc@3.3.7)(webpack@5.102.1) '@module-federation/runtime': 2.5.0(node-fetch@2.7.0) '@module-federation/sdk': 2.5.0(node-fetch@2.7.0) encoding: 0.1.13 @@ -17430,9 +17653,9 @@ snapshots: - utf-8-validate - vue-tsc - '@module-federation/node@2.7.43(@rspack/core@2.1.4)(typescript@6.0.3)(vue-tsc@3.3.3)(webpack@5.102.1)': + '@module-federation/node@2.7.43(@rspack/core@2.1.4)(typescript@6.0.3)(vue-tsc@3.3.7)(webpack@5.102.1)': dependencies: - '@module-federation/enhanced': 2.5.0(@rspack/core@2.1.4)(node-fetch@2.7.0)(typescript@6.0.3)(vue-tsc@3.3.3)(webpack@5.102.1) + '@module-federation/enhanced': 2.5.0(@rspack/core@2.1.4)(node-fetch@2.7.0)(typescript@6.0.3)(vue-tsc@3.3.7)(webpack@5.102.1) '@module-federation/runtime': 2.5.0(node-fetch@2.7.0) '@module-federation/sdk': 2.5.0(node-fetch@2.7.0) encoding: 0.1.13 @@ -17447,10 +17670,10 @@ snapshots: - utf-8-validate - vue-tsc - '@module-federation/rsbuild-plugin@2.5.0(@rsbuild/core@2.1.6)(@rspack/core@2.1.4)(node-fetch@2.7.0)(typescript@5.9.3)(vue-tsc@3.3.3)(webpack@5.102.1)': + '@module-federation/rsbuild-plugin@2.5.0(@rsbuild/core@2.1.6)(@rspack/core@2.1.4)(node-fetch@2.7.0)(typescript@5.9.3)(vue-tsc@3.3.7)(webpack@5.102.1)': dependencies: - '@module-federation/enhanced': 2.5.0(@rspack/core@2.1.4)(node-fetch@2.7.0)(typescript@5.9.3)(vue-tsc@3.3.3)(webpack@5.102.1) - '@module-federation/node': 2.7.43(@rspack/core@2.1.4)(typescript@5.9.3)(vue-tsc@3.3.3)(webpack@5.102.1) + '@module-federation/enhanced': 2.5.0(@rspack/core@2.1.4)(node-fetch@2.7.0)(typescript@5.9.3)(vue-tsc@3.3.7)(webpack@5.102.1) + '@module-federation/node': 2.7.43(@rspack/core@2.1.4)(typescript@5.9.3)(vue-tsc@3.3.7)(webpack@5.102.1) '@module-federation/sdk': 2.5.0(node-fetch@2.7.0) optionalDependencies: '@rsbuild/core': 2.1.6(@module-federation/runtime-tools@2.5.0)(core-js@3.49.0) @@ -17463,10 +17686,10 @@ snapshots: - vue-tsc - webpack - '@module-federation/rsbuild-plugin@2.5.0(@rsbuild/core@2.1.6)(@rspack/core@2.1.4)(node-fetch@2.7.0)(typescript@6.0.3)(vue-tsc@3.3.3)(webpack@5.102.1)': + '@module-federation/rsbuild-plugin@2.5.0(@rsbuild/core@2.1.6)(@rspack/core@2.1.4)(node-fetch@2.7.0)(typescript@6.0.3)(vue-tsc@3.3.7)(webpack@5.102.1)': dependencies: - '@module-federation/enhanced': 2.5.0(@rspack/core@2.1.4)(node-fetch@2.7.0)(typescript@6.0.3)(vue-tsc@3.3.3)(webpack@5.102.1) - '@module-federation/node': 2.7.43(@rspack/core@2.1.4)(typescript@6.0.3)(vue-tsc@3.3.3)(webpack@5.102.1) + '@module-federation/enhanced': 2.5.0(@rspack/core@2.1.4)(node-fetch@2.7.0)(typescript@6.0.3)(vue-tsc@3.3.7)(webpack@5.102.1) + '@module-federation/node': 2.7.43(@rspack/core@2.1.4)(typescript@6.0.3)(vue-tsc@3.3.7)(webpack@5.102.1) '@module-federation/sdk': 2.5.0(node-fetch@2.7.0) optionalDependencies: '@rsbuild/core': 2.1.6(@module-federation/runtime-tools@2.5.0)(core-js@3.49.0) @@ -17479,37 +17702,37 @@ snapshots: - vue-tsc - webpack - '@module-federation/rspack@2.5.0(@rspack/core@2.1.4)(node-fetch@2.7.0)(typescript@5.9.3)(vue-tsc@3.3.3)': + '@module-federation/rspack@2.5.0(@rspack/core@2.1.4)(node-fetch@2.7.0)(typescript@5.9.3)(vue-tsc@3.3.7)': dependencies: '@module-federation/bridge-react-webpack-plugin': 2.5.0(node-fetch@2.7.0) - '@module-federation/dts-plugin': 2.5.0(node-fetch@2.7.0)(typescript@5.9.3)(vue-tsc@3.3.3) + '@module-federation/dts-plugin': 2.5.0(node-fetch@2.7.0)(typescript@5.9.3)(vue-tsc@3.3.7) '@module-federation/inject-external-runtime-core-plugin': 2.5.0(@module-federation/runtime-tools@2.5.0) '@module-federation/managers': 2.5.0(node-fetch@2.7.0) - '@module-federation/manifest': 2.5.0(node-fetch@2.7.0)(typescript@5.9.3)(vue-tsc@3.3.3) + '@module-federation/manifest': 2.5.0(node-fetch@2.7.0)(typescript@5.9.3)(vue-tsc@3.3.7) '@module-federation/runtime-tools': 2.5.0(node-fetch@2.7.0) '@module-federation/sdk': 2.5.0(node-fetch@2.7.0) '@rspack/core': 2.1.4(@module-federation/runtime-tools@2.5.0)(@swc/helpers@0.5.23) optionalDependencies: typescript: 5.9.3 - vue-tsc: 3.3.3(typescript@5.9.3) + vue-tsc: 3.3.7(typescript@5.9.3) transitivePeerDependencies: - bufferutil - node-fetch - utf-8-validate - '@module-federation/rspack@2.5.0(@rspack/core@2.1.4)(node-fetch@2.7.0)(typescript@6.0.3)(vue-tsc@3.3.3)': + '@module-federation/rspack@2.5.0(@rspack/core@2.1.4)(node-fetch@2.7.0)(typescript@6.0.3)(vue-tsc@3.3.7)': dependencies: '@module-federation/bridge-react-webpack-plugin': 2.5.0(node-fetch@2.7.0) - '@module-federation/dts-plugin': 2.5.0(node-fetch@2.7.0)(typescript@6.0.3)(vue-tsc@3.3.3) + '@module-federation/dts-plugin': 2.5.0(node-fetch@2.7.0)(typescript@6.0.3)(vue-tsc@3.3.7) '@module-federation/inject-external-runtime-core-plugin': 2.5.0(@module-federation/runtime-tools@2.5.0) '@module-federation/managers': 2.5.0(node-fetch@2.7.0) - '@module-federation/manifest': 2.5.0(node-fetch@2.7.0)(typescript@6.0.3)(vue-tsc@3.3.3) + '@module-federation/manifest': 2.5.0(node-fetch@2.7.0)(typescript@6.0.3)(vue-tsc@3.3.7) '@module-federation/runtime-tools': 2.5.0(node-fetch@2.7.0) '@module-federation/sdk': 2.5.0(node-fetch@2.7.0) '@rspack/core': 2.1.4(@module-federation/runtime-tools@2.5.0)(@swc/helpers@0.5.23) optionalDependencies: typescript: 6.0.3 - vue-tsc: 3.3.3(typescript@6.0.3) + vue-tsc: 3.3.7(typescript@6.0.3) transitivePeerDependencies: - bufferutil - node-fetch @@ -17559,9 +17782,9 @@ snapshots: optionalDependencies: node-fetch: 2.7.0(encoding@0.1.13) - '@module-federation/storybook-addon@6.0.12(@module-federation/sdk@2.5.0)(@rsbuild/core@2.1.6)(@rspack/core@2.1.4)(node-fetch@2.7.0)(storybook@10.4.1)(typescript@6.0.3)(vue-tsc@3.3.3)(webpack-virtual-modules@0.6.2)(webpack@5.102.1)': + '@module-federation/storybook-addon@6.0.12(@module-federation/sdk@2.5.0)(@rsbuild/core@2.1.6)(@rspack/core@2.1.4)(node-fetch@2.7.0)(storybook@10.4.1)(typescript@6.0.3)(vue-tsc@3.3.7)(webpack-virtual-modules@0.6.2)(webpack@5.102.1)': dependencies: - '@module-federation/enhanced': 2.5.0(@rspack/core@2.1.4)(node-fetch@2.7.0)(typescript@6.0.3)(vue-tsc@3.3.3)(webpack@5.102.1) + '@module-federation/enhanced': 2.5.0(@rspack/core@2.1.4)(node-fetch@2.7.0)(typescript@6.0.3)(vue-tsc@3.3.7)(webpack@5.102.1) optionalDependencies: '@module-federation/sdk': 2.5.0(node-fetch@2.7.0) '@rsbuild/core': 2.1.6(@module-federation/runtime-tools@2.5.0)(core-js@3.49.0) @@ -20562,7 +20785,7 @@ snapshots: '@vue/compiler-dom': 3.5.35 '@vue/shared': 3.5.35 - '@vue/language-core@3.3.3': + '@vue/language-core@3.3.7': dependencies: '@volar/language-core': 2.4.28 '@vue/compiler-dom': 3.5.35 @@ -28098,16 +28321,16 @@ snapshots: he: 1.2.0 optional: true - vue-tsc@3.3.3(typescript@5.9.3): + vue-tsc@3.3.7(typescript@5.9.3): dependencies: '@volar/typescript': 2.4.28 - '@vue/language-core': 3.3.3 + '@vue/language-core': 3.3.7 typescript: 5.9.3 - vue-tsc@3.3.3(typescript@6.0.3): + vue-tsc@3.3.7(typescript@6.0.3): dependencies: '@volar/typescript': 2.4.28 - '@vue/language-core': 3.3.3 + '@vue/language-core': 3.3.7 typescript: 6.0.3 optional: true diff --git a/rsbuild/emotion/package.json b/rsbuild/emotion/package.json index cc42c2ad8..5af51914d 100644 --- a/rsbuild/emotion/package.json +++ b/rsbuild/emotion/package.json @@ -17,6 +17,7 @@ "@rsbuild/core": "2.1.6", "@rsbuild/plugin-react": "^2.1.0", "@swc/plugin-emotion": "^14.12.0", + "@types/node": "^24.12.4", "@types/react": "^19.2.15", "@types/react-dom": "^19.2.3", "typescript": "^5.9.3" diff --git a/rsbuild/emotion/src/env.d.ts b/rsbuild/emotion/src/env.d.ts deleted file mode 100644 index b0ac762b0..000000000 --- a/rsbuild/emotion/src/env.d.ts +++ /dev/null @@ -1 +0,0 @@ -/// diff --git a/rsbuild/emotion/tsconfig.json b/rsbuild/emotion/tsconfig.json index 88c7b293d..8edf1f2f0 100644 --- a/rsbuild/emotion/tsconfig.json +++ b/rsbuild/emotion/tsconfig.json @@ -7,6 +7,7 @@ "jsxImportSource": "@emotion/react", "strict": true, "skipLibCheck": true, + "types": ["@rsbuild/core/types", "node"], "isolatedModules": true, "resolveJsonModule": true, "moduleResolution": "bundler" diff --git a/rsbuild/express/package.json b/rsbuild/express/package.json index 7f2375fa9..b0cf16eb2 100644 --- a/rsbuild/express/package.json +++ b/rsbuild/express/package.json @@ -11,6 +11,7 @@ "devDependencies": { "@rsbuild/core": "2.1.6", "@types/express": "^5.0.6", + "@types/node": "^24.12.4", "express": "^5.2.1", "typescript": "^5.9.3" } diff --git a/rsbuild/fastify/package.json b/rsbuild/fastify/package.json index 91e45119c..adafd7be8 100644 --- a/rsbuild/fastify/package.json +++ b/rsbuild/fastify/package.json @@ -11,6 +11,7 @@ "devDependencies": { "@fastify/middie": "^9.3.2", "@rsbuild/core": "2.1.6", + "@types/node": "^24.12.4", "fastify": "^5.8.5", "typescript": "^5.9.3" } diff --git a/rsbuild/lit/package.json b/rsbuild/lit/package.json index b6ea64ea4..b5848d769 100644 --- a/rsbuild/lit/package.json +++ b/rsbuild/lit/package.json @@ -10,6 +10,7 @@ }, "devDependencies": { "@rsbuild/core": "2.1.6", + "@types/node": "^24.12.4", "lit": "^3.3.3", "typescript": "^5.9.3" } diff --git a/rsbuild/lit/src/env.d.ts b/rsbuild/lit/src/env.d.ts deleted file mode 100644 index b0ac762b0..000000000 --- a/rsbuild/lit/src/env.d.ts +++ /dev/null @@ -1 +0,0 @@ -/// diff --git a/rsbuild/lit/tsconfig.json b/rsbuild/lit/tsconfig.json index 4bdc24313..196781938 100644 --- a/rsbuild/lit/tsconfig.json +++ b/rsbuild/lit/tsconfig.json @@ -5,6 +5,7 @@ "module": "ESNext", "strict": true, "skipLibCheck": true, + "types": ["@rsbuild/core/types", "node"], "isolatedModules": true, "resolveJsonModule": true, "moduleResolution": "bundler", diff --git a/rsbuild/module-federation-enhanced/consumer/package.json b/rsbuild/module-federation-enhanced/consumer/package.json index 9fbcf7ab0..26e17dd1c 100644 --- a/rsbuild/module-federation-enhanced/consumer/package.json +++ b/rsbuild/module-federation-enhanced/consumer/package.json @@ -15,6 +15,7 @@ "@module-federation/rsbuild-plugin": "^2.5.0", "@rsbuild/core": "2.1.6", "@rsbuild/plugin-react": "^2.1.0", + "@types/node": "^24.12.4", "@types/react": "^19.2.15", "@types/react-dom": "^19.2.3", "typescript": "^5.9.3" diff --git a/rsbuild/module-federation-enhanced/consumer/src/remotes.d.ts b/rsbuild/module-federation-enhanced/consumer/src/remotes.d.ts new file mode 100644 index 000000000..95ffb4d4c --- /dev/null +++ b/rsbuild/module-federation-enhanced/consumer/src/remotes.d.ts @@ -0,0 +1,6 @@ +declare module 'federation_provider/button' { + import type { ComponentType } from 'react'; + + const Button: ComponentType; + export default Button; +} diff --git a/rsbuild/module-federation-enhanced/consumer/tsconfig.json b/rsbuild/module-federation-enhanced/consumer/tsconfig.json index 0bc9551bd..dcbdf8578 100644 --- a/rsbuild/module-federation-enhanced/consumer/tsconfig.json +++ b/rsbuild/module-federation-enhanced/consumer/tsconfig.json @@ -6,6 +6,7 @@ "jsx": "react-jsx", "strict": true, "skipLibCheck": true, + "types": ["@rsbuild/core/types", "node"], "isolatedModules": true, "resolveJsonModule": true, "moduleResolution": "bundler", diff --git a/rsbuild/module-federation-enhanced/provider/package.json b/rsbuild/module-federation-enhanced/provider/package.json index f769a7492..37d971618 100644 --- a/rsbuild/module-federation-enhanced/provider/package.json +++ b/rsbuild/module-federation-enhanced/provider/package.json @@ -15,6 +15,7 @@ "@module-federation/rsbuild-plugin": "^2.5.0", "@rsbuild/core": "2.1.6", "@rsbuild/plugin-react": "^2.1.0", + "@types/node": "^24.12.4", "@types/react": "^19.2.15", "@types/react-dom": "^19.2.3", "typescript": "^5.9.3" diff --git a/rsbuild/module-federation-enhanced/provider/tsconfig.json b/rsbuild/module-federation-enhanced/provider/tsconfig.json index c1a7cb53c..dfb230302 100644 --- a/rsbuild/module-federation-enhanced/provider/tsconfig.json +++ b/rsbuild/module-federation-enhanced/provider/tsconfig.json @@ -6,6 +6,7 @@ "jsx": "react-jsx", "strict": true, "skipLibCheck": true, + "types": ["@rsbuild/core/types", "node"], "isolatedModules": true, "resolveJsonModule": true, "moduleResolution": "bundler" diff --git a/rsbuild/module-federation/host/package.json b/rsbuild/module-federation/host/package.json index 1e5c20d12..b8c63efb8 100644 --- a/rsbuild/module-federation/host/package.json +++ b/rsbuild/module-federation/host/package.json @@ -14,6 +14,7 @@ "devDependencies": { "@rsbuild/core": "2.1.6", "@rsbuild/plugin-react": "^2.1.0", + "@types/node": "^24.12.4", "typescript": "^5.9.3" } } diff --git a/rsbuild/module-federation/host/tsconfig.json b/rsbuild/module-federation/host/tsconfig.json index c1a7cb53c..d494cc257 100644 --- a/rsbuild/module-federation/host/tsconfig.json +++ b/rsbuild/module-federation/host/tsconfig.json @@ -3,9 +3,11 @@ "target": "ES2020", "lib": ["DOM", "ES2020"], "module": "ESNext", + "allowJs": true, "jsx": "react-jsx", "strict": true, "skipLibCheck": true, + "types": ["@rsbuild/core/types", "node"], "isolatedModules": true, "resolveJsonModule": true, "moduleResolution": "bundler" diff --git a/rsbuild/module-federation/remote/package.json b/rsbuild/module-federation/remote/package.json index 819055d2a..c9cd54afb 100644 --- a/rsbuild/module-federation/remote/package.json +++ b/rsbuild/module-federation/remote/package.json @@ -14,6 +14,7 @@ "devDependencies": { "@rsbuild/core": "2.1.6", "@rsbuild/plugin-react": "^2.1.0", + "@types/node": "^24.12.4", "typescript": "^5.9.3" } } diff --git a/rsbuild/module-federation/remote/tsconfig.json b/rsbuild/module-federation/remote/tsconfig.json index c1a7cb53c..d494cc257 100644 --- a/rsbuild/module-federation/remote/tsconfig.json +++ b/rsbuild/module-federation/remote/tsconfig.json @@ -3,9 +3,11 @@ "target": "ES2020", "lib": ["DOM", "ES2020"], "module": "ESNext", + "allowJs": true, "jsx": "react-jsx", "strict": true, "skipLibCheck": true, + "types": ["@rsbuild/core/types", "node"], "isolatedModules": true, "resolveJsonModule": true, "moduleResolution": "bundler" diff --git a/rsbuild/preact/package.json b/rsbuild/preact/package.json index a167e8f35..3e6f41840 100644 --- a/rsbuild/preact/package.json +++ b/rsbuild/preact/package.json @@ -14,6 +14,7 @@ "devDependencies": { "@rsbuild/core": "2.1.6", "@rsbuild/plugin-preact": "^1.7.3", + "@types/node": "^24.12.4", "typescript": "^5.9.3" } } diff --git a/rsbuild/preact/tsconfig.json b/rsbuild/preact/tsconfig.json index 98604476d..49e3becc6 100644 --- a/rsbuild/preact/tsconfig.json +++ b/rsbuild/preact/tsconfig.json @@ -7,6 +7,7 @@ "jsxImportSource": "preact", "strict": true, "skipLibCheck": true, + "types": ["@rsbuild/core/types", "node"], "isolatedModules": true, "resolveJsonModule": true, "moduleResolution": "bundler", diff --git a/rsbuild/query-raw/package.json b/rsbuild/query-raw/package.json index 52290d2a3..cda685e46 100644 --- a/rsbuild/query-raw/package.json +++ b/rsbuild/query-raw/package.json @@ -15,6 +15,7 @@ "devDependencies": { "@rsbuild/core": "2.1.6", "@rsbuild/plugin-react": "^2.1.0", + "@types/node": "^24.12.4", "@types/react": "^19.2.15", "@types/react-dom": "^19.2.3", "typescript": "^5.9.3" diff --git a/rsbuild/query-raw/src/env.d.ts b/rsbuild/query-raw/src/env.d.ts index a56e3ad39..88d404d0a 100644 --- a/rsbuild/query-raw/src/env.d.ts +++ b/rsbuild/query-raw/src/env.d.ts @@ -1,5 +1,3 @@ -/// - declare module '*?raw' { const content: string; export default content; diff --git a/rsbuild/query-raw/tsconfig.json b/rsbuild/query-raw/tsconfig.json index c1a7cb53c..dfb230302 100644 --- a/rsbuild/query-raw/tsconfig.json +++ b/rsbuild/query-raw/tsconfig.json @@ -6,6 +6,7 @@ "jsx": "react-jsx", "strict": true, "skipLibCheck": true, + "types": ["@rsbuild/core/types", "node"], "isolatedModules": true, "resolveJsonModule": true, "moduleResolution": "bundler" diff --git a/rsbuild/react-compiler-babel/package.json b/rsbuild/react-compiler-babel/package.json index e6d63de61..ed136601d 100644 --- a/rsbuild/react-compiler-babel/package.json +++ b/rsbuild/react-compiler-babel/package.json @@ -16,6 +16,7 @@ "@rsbuild/core": "2.1.6", "@rsbuild/plugin-babel": "^1.2.1", "@rsbuild/plugin-react": "^2.1.0", + "@types/node": "^24.12.4", "@types/react": "^19.2.15", "@types/react-dom": "^19.2.3", "babel-plugin-react-compiler": "^1.0.0", diff --git a/rsbuild/react-compiler-babel/src/env.d.ts b/rsbuild/react-compiler-babel/src/env.d.ts deleted file mode 100644 index b0ac762b0..000000000 --- a/rsbuild/react-compiler-babel/src/env.d.ts +++ /dev/null @@ -1 +0,0 @@ -/// diff --git a/rsbuild/react-compiler-babel/tsconfig.json b/rsbuild/react-compiler-babel/tsconfig.json index c1a7cb53c..dfb230302 100644 --- a/rsbuild/react-compiler-babel/tsconfig.json +++ b/rsbuild/react-compiler-babel/tsconfig.json @@ -6,6 +6,7 @@ "jsx": "react-jsx", "strict": true, "skipLibCheck": true, + "types": ["@rsbuild/core/types", "node"], "isolatedModules": true, "resolveJsonModule": true, "moduleResolution": "bundler" diff --git a/rsbuild/react-eslint/package.json b/rsbuild/react-eslint/package.json index 02145173c..75efd856f 100644 --- a/rsbuild/react-eslint/package.json +++ b/rsbuild/react-eslint/package.json @@ -17,6 +17,7 @@ "@rsbuild/core": "2.1.6", "@rsbuild/plugin-eslint": "^2.0.1", "@rsbuild/plugin-react": "^2.1.0", + "@types/node": "^24.12.4", "@types/react": "^19.2.15", "@types/react-dom": "^19.2.3", "@typescript-eslint/eslint-plugin": "^8.60.0", diff --git a/rsbuild/react-eslint/src/env.d.ts b/rsbuild/react-eslint/src/env.d.ts deleted file mode 100644 index b0ac762b0..000000000 --- a/rsbuild/react-eslint/src/env.d.ts +++ /dev/null @@ -1 +0,0 @@ -/// diff --git a/rsbuild/react-eslint/tsconfig.json b/rsbuild/react-eslint/tsconfig.json index e6b9bdf4e..9b3e500b8 100644 --- a/rsbuild/react-eslint/tsconfig.json +++ b/rsbuild/react-eslint/tsconfig.json @@ -6,6 +6,7 @@ "jsx": "react-jsx", "strict": true, "skipLibCheck": true, + "types": ["@rsbuild/core/types", "node"], "isolatedModules": true, "resolveJsonModule": true, "moduleResolution": "bundler", diff --git a/rsbuild/react-mdx/package.json b/rsbuild/react-mdx/package.json index 28f51bf34..8818d3cef 100644 --- a/rsbuild/react-mdx/package.json +++ b/rsbuild/react-mdx/package.json @@ -15,6 +15,7 @@ "@rsbuild/core": "2.1.6", "@rsbuild/plugin-mdx": "^1.1.2", "@rsbuild/plugin-react": "^2.1.0", + "@types/node": "^24.12.4", "@types/react": "^19.2.15", "@types/react-dom": "^19.2.3", "typescript": "^5.9.3" diff --git a/rsbuild/react-mdx/src/env.d.ts b/rsbuild/react-mdx/src/env.d.ts index ab4aaf56d..1b041bb01 100644 --- a/rsbuild/react-mdx/src/env.d.ts +++ b/rsbuild/react-mdx/src/env.d.ts @@ -1,5 +1,3 @@ -/// - declare module '*.md' { let MDXComponent: () => JSX.Element; export default MDXComponent; diff --git a/rsbuild/react-mdx/src/index.tsx b/rsbuild/react-mdx/src/index.tsx index 65a8dbf40..2b875af73 100644 --- a/rsbuild/react-mdx/src/index.tsx +++ b/rsbuild/react-mdx/src/index.tsx @@ -2,7 +2,7 @@ import React from 'react'; import ReactDOM from 'react-dom/client'; import App from './App'; -const root = ReactDOM.createRoot(document.getElementById('root')); +const root = ReactDOM.createRoot(document.getElementById('root')!); root.render( diff --git a/rsbuild/react-mdx/tsconfig.json b/rsbuild/react-mdx/tsconfig.json index c1a7cb53c..dfb230302 100644 --- a/rsbuild/react-mdx/tsconfig.json +++ b/rsbuild/react-mdx/tsconfig.json @@ -6,6 +6,7 @@ "jsx": "react-jsx", "strict": true, "skipLibCheck": true, + "types": ["@rsbuild/core/types", "node"], "isolatedModules": true, "resolveJsonModule": true, "moduleResolution": "bundler" diff --git a/rsbuild/react-tailwindcss/package.json b/rsbuild/react-tailwindcss/package.json index c2f84e44d..b12be2474 100644 --- a/rsbuild/react-tailwindcss/package.json +++ b/rsbuild/react-tailwindcss/package.json @@ -17,6 +17,7 @@ "@rsbuild/core": "2.1.6", "@rsbuild/plugin-react": "^2.1.0", "@rsbuild/plugin-tailwindcss": "^2.0.1", + "@types/node": "^24.12.4", "@types/react": "^19.2.15", "@types/react-dom": "^19.2.3", "typescript": "^5.9.3" diff --git a/rsbuild/react-tailwindcss/src/env.d.ts b/rsbuild/react-tailwindcss/src/env.d.ts deleted file mode 100644 index b0ac762b0..000000000 --- a/rsbuild/react-tailwindcss/src/env.d.ts +++ /dev/null @@ -1 +0,0 @@ -/// diff --git a/rsbuild/react-tailwindcss/tsconfig.json b/rsbuild/react-tailwindcss/tsconfig.json index c1a7cb53c..dfb230302 100644 --- a/rsbuild/react-tailwindcss/tsconfig.json +++ b/rsbuild/react-tailwindcss/tsconfig.json @@ -6,6 +6,7 @@ "jsx": "react-jsx", "strict": true, "skipLibCheck": true, + "types": ["@rsbuild/core/types", "node"], "isolatedModules": true, "resolveJsonModule": true, "moduleResolution": "bundler" diff --git a/rsbuild/react-unocss/package.json b/rsbuild/react-unocss/package.json index 70f09afeb..60ac706fa 100644 --- a/rsbuild/react-unocss/package.json +++ b/rsbuild/react-unocss/package.json @@ -15,6 +15,7 @@ "devDependencies": { "@rsbuild/core": "2.1.6", "@rsbuild/plugin-react": "^2.1.0", + "@types/node": "^24.12.4", "@types/react": "^19.2.15", "@types/react-dom": "^19.2.3", "@unocss/preset-attributify": "^66.7.0", diff --git a/rsbuild/react-unocss/tsconfig.json b/rsbuild/react-unocss/tsconfig.json index 41e5a8b62..f7ab3435f 100644 --- a/rsbuild/react-unocss/tsconfig.json +++ b/rsbuild/react-unocss/tsconfig.json @@ -6,6 +6,7 @@ "jsx": "react-jsx", "strict": true, "skipLibCheck": true, + "types": ["@rsbuild/core/types", "node"], "isolatedModules": true, "resolveJsonModule": true, "moduleResolution": "bundler" diff --git a/rsbuild/react/package.json b/rsbuild/react/package.json index 586b115d3..acac81fb8 100644 --- a/rsbuild/react/package.json +++ b/rsbuild/react/package.json @@ -15,6 +15,7 @@ "devDependencies": { "@rsbuild/core": "2.1.6", "@rsbuild/plugin-react": "^2.1.0", + "@types/node": "^24.12.4", "@types/react": "^19.2.15", "@types/react-dom": "^19.2.3", "typescript": "^5.9.3" diff --git a/rsbuild/react/src/env.d.ts b/rsbuild/react/src/env.d.ts deleted file mode 100644 index b0ac762b0..000000000 --- a/rsbuild/react/src/env.d.ts +++ /dev/null @@ -1 +0,0 @@ -/// diff --git a/rsbuild/react/tsconfig.json b/rsbuild/react/tsconfig.json index c1a7cb53c..dfb230302 100644 --- a/rsbuild/react/tsconfig.json +++ b/rsbuild/react/tsconfig.json @@ -6,6 +6,7 @@ "jsx": "react-jsx", "strict": true, "skipLibCheck": true, + "types": ["@rsbuild/core/types", "node"], "isolatedModules": true, "resolveJsonModule": true, "moduleResolution": "bundler" diff --git a/rsbuild/shadcn-ui/src/env.d.ts b/rsbuild/shadcn-ui/src/env.d.ts deleted file mode 100644 index b0ac762b0..000000000 --- a/rsbuild/shadcn-ui/src/env.d.ts +++ /dev/null @@ -1 +0,0 @@ -/// diff --git a/rsbuild/shadcn-ui/tsconfig.json b/rsbuild/shadcn-ui/tsconfig.json index 4aa8eb7a1..327de1af1 100644 --- a/rsbuild/shadcn-ui/tsconfig.json +++ b/rsbuild/shadcn-ui/tsconfig.json @@ -11,6 +11,7 @@ "jsx": "react-jsx", "strict": true, "skipLibCheck": true, + "types": ["@rsbuild/core/types", "node"], "isolatedModules": true, "resolveJsonModule": true, "moduleResolution": "bundler", diff --git a/rsbuild/solid/package.json b/rsbuild/solid/package.json index c5fb56136..d726d057c 100644 --- a/rsbuild/solid/package.json +++ b/rsbuild/solid/package.json @@ -15,6 +15,7 @@ "@rsbuild/core": "2.1.6", "@rsbuild/plugin-babel": "^1.2.1", "@rsbuild/plugin-solid": "^1.2.1", + "@types/node": "^24.12.4", "typescript": "^5.9.3" } } diff --git a/rsbuild/solid/src/env.d.ts b/rsbuild/solid/src/env.d.ts deleted file mode 100644 index b0ac762b0..000000000 --- a/rsbuild/solid/src/env.d.ts +++ /dev/null @@ -1 +0,0 @@ -/// diff --git a/rsbuild/solid/tsconfig.json b/rsbuild/solid/tsconfig.json index abd16bffc..a0d629727 100644 --- a/rsbuild/solid/tsconfig.json +++ b/rsbuild/solid/tsconfig.json @@ -7,6 +7,7 @@ "jsxImportSource": "solid-js", "strict": true, "skipLibCheck": true, + "types": ["@rsbuild/core/types", "node"], "isolatedModules": true, "resolveJsonModule": true, "moduleResolution": "bundler", diff --git a/rsbuild/ssr-express-with-manifest/package.json b/rsbuild/ssr-express-with-manifest/package.json index 5b3e305a1..129969cc0 100644 --- a/rsbuild/ssr-express-with-manifest/package.json +++ b/rsbuild/ssr-express-with-manifest/package.json @@ -16,6 +16,7 @@ "@rsbuild/core": "2.1.6", "@rsbuild/plugin-react": "2.1.0", "@types/express": "^5.0.6", + "@types/node": "^24.12.4", "@types/react": "^19.2.15", "@types/react-dom": "^19.2.3", "cross-env": "^10.1.0", diff --git a/rsbuild/ssr-express-with-manifest/src/env.d.ts b/rsbuild/ssr-express-with-manifest/src/env.d.ts deleted file mode 100644 index b0ac762b0..000000000 --- a/rsbuild/ssr-express-with-manifest/src/env.d.ts +++ /dev/null @@ -1 +0,0 @@ -/// diff --git a/rsbuild/ssr-express-with-manifest/tsconfig.json b/rsbuild/ssr-express-with-manifest/tsconfig.json index c1a7cb53c..dfb230302 100644 --- a/rsbuild/ssr-express-with-manifest/tsconfig.json +++ b/rsbuild/ssr-express-with-manifest/tsconfig.json @@ -6,6 +6,7 @@ "jsx": "react-jsx", "strict": true, "skipLibCheck": true, + "types": ["@rsbuild/core/types", "node"], "isolatedModules": true, "resolveJsonModule": true, "moduleResolution": "bundler" diff --git a/rsbuild/ssr-express/package.json b/rsbuild/ssr-express/package.json index d3c023895..57d112568 100644 --- a/rsbuild/ssr-express/package.json +++ b/rsbuild/ssr-express/package.json @@ -16,6 +16,7 @@ "@rsbuild/core": "2.1.6", "@rsbuild/plugin-react": "2.1.0", "@types/express": "^5.0.6", + "@types/node": "^24.12.4", "@types/react": "^19.2.15", "@types/react-dom": "^19.2.3", "cross-env": "^10.1.0", diff --git a/rsbuild/ssr-express/src/env.d.ts b/rsbuild/ssr-express/src/env.d.ts deleted file mode 100644 index b0ac762b0..000000000 --- a/rsbuild/ssr-express/src/env.d.ts +++ /dev/null @@ -1 +0,0 @@ -/// diff --git a/rsbuild/ssr-express/tsconfig.json b/rsbuild/ssr-express/tsconfig.json index c1a7cb53c..dfb230302 100644 --- a/rsbuild/ssr-express/tsconfig.json +++ b/rsbuild/ssr-express/tsconfig.json @@ -6,6 +6,7 @@ "jsx": "react-jsx", "strict": true, "skipLibCheck": true, + "types": ["@rsbuild/core/types", "node"], "isolatedModules": true, "resolveJsonModule": true, "moduleResolution": "bundler" diff --git a/rsbuild/ssr/package.json b/rsbuild/ssr/package.json index 69d380377..fa9ee18f4 100644 --- a/rsbuild/ssr/package.json +++ b/rsbuild/ssr/package.json @@ -15,6 +15,7 @@ "devDependencies": { "@rsbuild/core": "2.1.6", "@rsbuild/plugin-react": "2.1.0", + "@types/node": "^24.12.4", "@types/react": "^19.2.15", "@types/react-dom": "^19.2.3", "cross-env": "^10.1.0", diff --git a/rsbuild/ssr/src/env.d.ts b/rsbuild/ssr/src/env.d.ts deleted file mode 100644 index b0ac762b0..000000000 --- a/rsbuild/ssr/src/env.d.ts +++ /dev/null @@ -1 +0,0 @@ -/// diff --git a/rsbuild/ssr/tsconfig.json b/rsbuild/ssr/tsconfig.json index c1a7cb53c..dfb230302 100644 --- a/rsbuild/ssr/tsconfig.json +++ b/rsbuild/ssr/tsconfig.json @@ -6,6 +6,7 @@ "jsx": "react-jsx", "strict": true, "skipLibCheck": true, + "types": ["@rsbuild/core/types", "node"], "isolatedModules": true, "resolveJsonModule": true, "moduleResolution": "bundler" diff --git a/rsbuild/styled-components/package.json b/rsbuild/styled-components/package.json index 2d02feaec..b79652431 100644 --- a/rsbuild/styled-components/package.json +++ b/rsbuild/styled-components/package.json @@ -17,6 +17,7 @@ "@rsbuild/core": "2.1.6", "@rsbuild/plugin-react": "^2.1.0", "@rsbuild/plugin-styled-components": "^1.6.2", + "@types/node": "^24.12.4", "@types/react": "^19.2.15", "@types/react-dom": "^19.2.3", "typescript": "^5.9.3" diff --git a/rsbuild/styled-components/src/env.d.ts b/rsbuild/styled-components/src/env.d.ts deleted file mode 100644 index b0ac762b0..000000000 --- a/rsbuild/styled-components/src/env.d.ts +++ /dev/null @@ -1 +0,0 @@ -/// diff --git a/rsbuild/styled-components/tsconfig.json b/rsbuild/styled-components/tsconfig.json index c1a7cb53c..dfb230302 100644 --- a/rsbuild/styled-components/tsconfig.json +++ b/rsbuild/styled-components/tsconfig.json @@ -6,6 +6,7 @@ "jsx": "react-jsx", "strict": true, "skipLibCheck": true, + "types": ["@rsbuild/core/types", "node"], "isolatedModules": true, "resolveJsonModule": true, "moduleResolution": "bundler" diff --git a/rsbuild/styled-jsx/package.json b/rsbuild/styled-jsx/package.json index 4317a453e..71a256a0e 100644 --- a/rsbuild/styled-jsx/package.json +++ b/rsbuild/styled-jsx/package.json @@ -17,6 +17,7 @@ "@rsbuild/core": "2.1.6", "@rsbuild/plugin-react": "^2.1.0", "@swc/plugin-styled-jsx": "^13.12.0", + "@types/node": "^24.12.4", "@types/react": "^19.2.15", "@types/react-dom": "^19.2.3", "typescript": "^5.9.3" diff --git a/rsbuild/styled-jsx/src/env.d.ts b/rsbuild/styled-jsx/src/env.d.ts deleted file mode 100644 index b0ac762b0..000000000 --- a/rsbuild/styled-jsx/src/env.d.ts +++ /dev/null @@ -1 +0,0 @@ -/// diff --git a/rsbuild/styled-jsx/src/styled-jsx.d.ts b/rsbuild/styled-jsx/src/styled-jsx.d.ts deleted file mode 100644 index 58518fe70..000000000 --- a/rsbuild/styled-jsx/src/styled-jsx.d.ts +++ /dev/null @@ -1 +0,0 @@ -/// diff --git a/rsbuild/styled-jsx/tsconfig.json b/rsbuild/styled-jsx/tsconfig.json index c1a7cb53c..a5631c0fb 100644 --- a/rsbuild/styled-jsx/tsconfig.json +++ b/rsbuild/styled-jsx/tsconfig.json @@ -6,6 +6,7 @@ "jsx": "react-jsx", "strict": true, "skipLibCheck": true, + "types": ["@rsbuild/core/types", "node", "styled-jsx"], "isolatedModules": true, "resolveJsonModule": true, "moduleResolution": "bundler" diff --git a/rsbuild/stylex/package.json b/rsbuild/stylex/package.json index 128c78b91..b9644e065 100644 --- a/rsbuild/stylex/package.json +++ b/rsbuild/stylex/package.json @@ -16,6 +16,7 @@ "devDependencies": { "@rsbuild/core": "2.1.6", "@rsbuild/plugin-react": "^2.1.0", + "@types/node": "^24.12.4", "@types/react": "^19.2.15", "@types/react-dom": "^19.2.3", "typescript": "^5.9.3", diff --git a/rsbuild/stylex/src/env.d.ts b/rsbuild/stylex/src/env.d.ts deleted file mode 100644 index b0ac762b0..000000000 --- a/rsbuild/stylex/src/env.d.ts +++ /dev/null @@ -1 +0,0 @@ -/// diff --git a/rsbuild/stylex/tsconfig.json b/rsbuild/stylex/tsconfig.json index c1a7cb53c..dfb230302 100644 --- a/rsbuild/stylex/tsconfig.json +++ b/rsbuild/stylex/tsconfig.json @@ -6,6 +6,7 @@ "jsx": "react-jsx", "strict": true, "skipLibCheck": true, + "types": ["@rsbuild/core/types", "node"], "isolatedModules": true, "resolveJsonModule": true, "moduleResolution": "bundler" diff --git a/rsbuild/svelte/package.json b/rsbuild/svelte/package.json index 2be5585b8..181024305 100644 --- a/rsbuild/svelte/package.json +++ b/rsbuild/svelte/package.json @@ -14,6 +14,7 @@ "devDependencies": { "@rsbuild/core": "2.1.6", "@rsbuild/plugin-svelte": "^1.1.2", + "@types/node": "^24.12.4", "typescript": "^5.9.3" } } diff --git a/rsbuild/svelte/src/env.d.ts b/rsbuild/svelte/src/env.d.ts deleted file mode 100644 index 796a3f691..000000000 --- a/rsbuild/svelte/src/env.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -/// -/// diff --git a/rsbuild/svelte/tsconfig.json b/rsbuild/svelte/tsconfig.json index 4bdc24313..96eef318f 100644 --- a/rsbuild/svelte/tsconfig.json +++ b/rsbuild/svelte/tsconfig.json @@ -5,6 +5,7 @@ "module": "ESNext", "strict": true, "skipLibCheck": true, + "types": ["@rsbuild/core/types", "node", "svelte"], "isolatedModules": true, "resolveJsonModule": true, "moduleResolution": "bundler", diff --git a/rsbuild/tanstack-start-rsc/tsconfig.json b/rsbuild/tanstack-start-rsc/tsconfig.json index 4a67b0d8b..e2fd4c1da 100644 --- a/rsbuild/tanstack-start-rsc/tsconfig.json +++ b/rsbuild/tanstack-start-rsc/tsconfig.json @@ -10,7 +10,7 @@ "~/*": ["./src/*"] }, "lib": ["ES2022", "DOM", "DOM.Iterable"], - "types": ["node", "@rsbuild/core/types"], + "types": ["@rsbuild/core/types", "node"], /* Bundler mode */ "moduleResolution": "bundler", diff --git a/rsbuild/tanstack-start-solid/tsconfig.json b/rsbuild/tanstack-start-solid/tsconfig.json index 7e9630975..a41e4431f 100644 --- a/rsbuild/tanstack-start-solid/tsconfig.json +++ b/rsbuild/tanstack-start-solid/tsconfig.json @@ -6,7 +6,7 @@ "jsxImportSource": "solid-js", "module": "ESNext", "lib": ["ES2022", "DOM", "DOM.Iterable"], - "types": ["node", "@rsbuild/core/types"], + "types": ["@rsbuild/core/types", "node"], /* Bundler mode */ "moduleResolution": "bundler", diff --git a/rsbuild/tanstack-start/tsconfig.json b/rsbuild/tanstack-start/tsconfig.json index a17116f96..c906ab1f5 100644 --- a/rsbuild/tanstack-start/tsconfig.json +++ b/rsbuild/tanstack-start/tsconfig.json @@ -9,7 +9,7 @@ "@/*": ["./src/*"] }, "lib": ["ES2022", "DOM", "DOM.Iterable"], - "types": ["node", "@rsbuild/core/types"], + "types": ["@rsbuild/core/types", "node"], /* Bundler mode */ "moduleResolution": "bundler", diff --git a/rsbuild/umd/package.json b/rsbuild/umd/package.json index 908a09060..12092a4f8 100644 --- a/rsbuild/umd/package.json +++ b/rsbuild/umd/package.json @@ -11,6 +11,7 @@ "devDependencies": { "@rsbuild/core": "2.1.6", "@rsbuild/plugin-umd": "^1.0.7", + "@types/node": "^24.12.4", "typescript": "^5.9.3" } } diff --git a/rsbuild/umd/src/env.d.ts b/rsbuild/umd/src/env.d.ts deleted file mode 100644 index b0ac762b0..000000000 --- a/rsbuild/umd/src/env.d.ts +++ /dev/null @@ -1 +0,0 @@ -/// diff --git a/rsbuild/umd/tsconfig.json b/rsbuild/umd/tsconfig.json index c1a7cb53c..dfb230302 100644 --- a/rsbuild/umd/tsconfig.json +++ b/rsbuild/umd/tsconfig.json @@ -6,6 +6,7 @@ "jsx": "react-jsx", "strict": true, "skipLibCheck": true, + "types": ["@rsbuild/core/types", "node"], "isolatedModules": true, "resolveJsonModule": true, "moduleResolution": "bundler" diff --git a/rsbuild/vanilla-extract/package.json b/rsbuild/vanilla-extract/package.json index 696c94892..0d08fc82e 100644 --- a/rsbuild/vanilla-extract/package.json +++ b/rsbuild/vanilla-extract/package.json @@ -16,6 +16,7 @@ "devDependencies": { "@rsbuild/core": "2.1.6", "@rsbuild/plugin-react": "^2.1.0", + "@types/node": "^24.12.4", "@types/react": "^19.2.15", "@types/react-dom": "^19.2.3", "@vanilla-extract/webpack-plugin": "^2.3.27", diff --git a/rsbuild/vanilla-extract/src/env.d.ts b/rsbuild/vanilla-extract/src/env.d.ts deleted file mode 100644 index b0ac762b0..000000000 --- a/rsbuild/vanilla-extract/src/env.d.ts +++ /dev/null @@ -1 +0,0 @@ -/// diff --git a/rsbuild/vanilla-extract/tsconfig.json b/rsbuild/vanilla-extract/tsconfig.json index c1a7cb53c..dfb230302 100644 --- a/rsbuild/vanilla-extract/tsconfig.json +++ b/rsbuild/vanilla-extract/tsconfig.json @@ -6,6 +6,7 @@ "jsx": "react-jsx", "strict": true, "skipLibCheck": true, + "types": ["@rsbuild/core/types", "node"], "isolatedModules": true, "resolveJsonModule": true, "moduleResolution": "bundler" diff --git a/rsbuild/vue-auto-import/package.json b/rsbuild/vue-auto-import/package.json index 4d8a90532..5c961ae59 100644 --- a/rsbuild/vue-auto-import/package.json +++ b/rsbuild/vue-auto-import/package.json @@ -4,7 +4,7 @@ "private": true, "type": "module", "scripts": { - "build": "rsbuild build", + "build": "vue-tsc && rsbuild build", "dev": "rsbuild --open", "preview": "rsbuild preview" }, @@ -14,7 +14,9 @@ "devDependencies": { "@rsbuild/core": "2.1.6", "@rsbuild/plugin-vue": "^1.2.9", + "@types/node": "^24.12.4", "typescript": "^5.9.3", - "unplugin-auto-import": "^21.0.0" + "unplugin-auto-import": "^21.0.0", + "vue-tsc": "^3.3.7" } } diff --git a/rsbuild/vue-auto-import/src/env.d.ts b/rsbuild/vue-auto-import/src/env.d.ts deleted file mode 100644 index 502e9f961..000000000 --- a/rsbuild/vue-auto-import/src/env.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -/// - -declare module '*.vue' { - import type { DefineComponent } from 'vue'; - - // eslint-disable-next-line - const component: DefineComponent<{}, {}, any>; - export default component; -} diff --git a/rsbuild/vue-auto-import/tsconfig.json b/rsbuild/vue-auto-import/tsconfig.json index 40476c27a..67a07ddda 100644 --- a/rsbuild/vue-auto-import/tsconfig.json +++ b/rsbuild/vue-auto-import/tsconfig.json @@ -6,11 +6,13 @@ "jsx": "preserve", "jsxImportSource": "vue", "strict": true, + "noEmit": true, "skipLibCheck": true, + "types": ["@rsbuild/core/types", "node"], "isolatedModules": true, "resolveJsonModule": true, "moduleResolution": "bundler", "useDefineForClassFields": true }, - "include": ["src", "auto-imports.d.ts"] + "include": ["src/**/*.ts", "src/**/*.tsx", "src/**/*.vue", "auto-imports.d.ts"] } diff --git a/rsbuild/vue-element-plus/package.json b/rsbuild/vue-element-plus/package.json index 9c96ee32d..e84c9b0b0 100644 --- a/rsbuild/vue-element-plus/package.json +++ b/rsbuild/vue-element-plus/package.json @@ -4,7 +4,7 @@ "private": true, "type": "module", "scripts": { - "build": "rsbuild build", + "build": "vue-tsc && rsbuild build", "dev": "rsbuild --open", "preview": "rsbuild preview" }, @@ -15,8 +15,10 @@ "devDependencies": { "@rsbuild/core": "2.1.6", "@rsbuild/plugin-vue": "^1.2.9", + "@types/node": "^24.12.4", "typescript": "^5.9.3", "unplugin-auto-import": "^21.0.0", - "unplugin-vue-components": "^31.1.0" + "unplugin-vue-components": "^31.1.0", + "vue-tsc": "^3.3.7" } } diff --git a/rsbuild/vue-element-plus/src/env.d.ts b/rsbuild/vue-element-plus/src/env.d.ts deleted file mode 100644 index 502e9f961..000000000 --- a/rsbuild/vue-element-plus/src/env.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -/// - -declare module '*.vue' { - import type { DefineComponent } from 'vue'; - - // eslint-disable-next-line - const component: DefineComponent<{}, {}, any>; - export default component; -} diff --git a/rsbuild/vue-element-plus/tsconfig.json b/rsbuild/vue-element-plus/tsconfig.json index ac244f115..1b289ead9 100644 --- a/rsbuild/vue-element-plus/tsconfig.json +++ b/rsbuild/vue-element-plus/tsconfig.json @@ -6,12 +6,13 @@ "jsx": "preserve", "jsxImportSource": "vue", "strict": true, + "noEmit": true, "skipLibCheck": true, "isolatedModules": true, "resolveJsonModule": true, "moduleResolution": "bundler", "useDefineForClassFields": true, - "types": ["element-plus/global"] + "types": ["@rsbuild/core/types", "node", "element-plus/global"] }, - "include": ["src"] + "include": ["src/**/*.ts", "src/**/*.tsx", "src/**/*.vue"] } diff --git a/rsbuild/vue-eslint/package.json b/rsbuild/vue-eslint/package.json index deffc4f12..0def856f9 100644 --- a/rsbuild/vue-eslint/package.json +++ b/rsbuild/vue-eslint/package.json @@ -4,7 +4,7 @@ "private": true, "type": "module", "scripts": { - "build": "rsbuild build", + "build": "vue-tsc && rsbuild build", "dev": "rsbuild --open", "preview": "rsbuild preview" }, @@ -15,10 +15,12 @@ "@rsbuild/core": "2.1.6", "@rsbuild/plugin-eslint": "^2.0.1", "@rsbuild/plugin-vue": "^1.2.9", + "@types/node": "^24.12.4", "@typescript-eslint/eslint-plugin": "^8.60.0", "@typescript-eslint/parser": "^8.60.0", "eslint": "^9.39.4", "eslint-plugin-vue": "^9.33.0", - "typescript": "^5.9.3" + "typescript": "^5.9.3", + "vue-tsc": "^3.3.7" } } diff --git a/rsbuild/vue-eslint/src/env.d.ts b/rsbuild/vue-eslint/src/env.d.ts deleted file mode 100644 index 502e9f961..000000000 --- a/rsbuild/vue-eslint/src/env.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -/// - -declare module '*.vue' { - import type { DefineComponent } from 'vue'; - - // eslint-disable-next-line - const component: DefineComponent<{}, {}, any>; - export default component; -} diff --git a/rsbuild/vue-eslint/tsconfig.json b/rsbuild/vue-eslint/tsconfig.json index e6b9bdf4e..e1d65ccd3 100644 --- a/rsbuild/vue-eslint/tsconfig.json +++ b/rsbuild/vue-eslint/tsconfig.json @@ -5,11 +5,13 @@ "module": "ESNext", "jsx": "react-jsx", "strict": true, + "noEmit": true, "skipLibCheck": true, + "types": ["@rsbuild/core/types", "node"], "isolatedModules": true, "resolveJsonModule": true, "moduleResolution": "bundler", "useDefineForClassFields": true }, - "include": ["src"] + "include": ["src/**/*.ts", "src/**/*.tsx", "src/**/*.vue"] } diff --git a/rsbuild/vue-vant/package.json b/rsbuild/vue-vant/package.json index d38301672..207260b95 100644 --- a/rsbuild/vue-vant/package.json +++ b/rsbuild/vue-vant/package.json @@ -4,7 +4,7 @@ "private": true, "type": "module", "scripts": { - "build": "rsbuild build", + "build": "vue-tsc && rsbuild build", "dev": "rsbuild --open", "preview": "rsbuild preview" }, @@ -16,9 +16,11 @@ "@rsbuild/core": "2.1.6", "@rsbuild/plugin-less": "^1.6.4", "@rsbuild/plugin-vue": "^1.2.9", + "@types/node": "^24.12.4", "@vant/auto-import-resolver": "^1.3.0", "typescript": "^5.9.3", "unplugin-auto-import": "^21.0.0", - "unplugin-vue-components": "^31.1.0" + "unplugin-vue-components": "^31.1.0", + "vue-tsc": "^3.3.7" } } diff --git a/rsbuild/vue-vant/src/env.d.ts b/rsbuild/vue-vant/src/env.d.ts deleted file mode 100644 index 502e9f961..000000000 --- a/rsbuild/vue-vant/src/env.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -/// - -declare module '*.vue' { - import type { DefineComponent } from 'vue'; - - // eslint-disable-next-line - const component: DefineComponent<{}, {}, any>; - export default component; -} diff --git a/rsbuild/vue-vant/tsconfig.json b/rsbuild/vue-vant/tsconfig.json index 13a86547f..4ed18835d 100644 --- a/rsbuild/vue-vant/tsconfig.json +++ b/rsbuild/vue-vant/tsconfig.json @@ -4,10 +4,12 @@ "lib": ["DOM", "ES2020"], "module": "ESNext", "strict": true, + "noEmit": true, "skipLibCheck": true, + "types": ["@rsbuild/core/types", "node"], "isolatedModules": true, "resolveJsonModule": true, "moduleResolution": "bundler" }, - "include": ["src", "./auto-imports.d.ts", "components.d.ts"] + "include": ["src/**/*.ts", "src/**/*.tsx", "src/**/*.vue", "auto-imports.d.ts", "components.d.ts"] } diff --git a/rsbuild/vue/package.json b/rsbuild/vue/package.json index c4c23c9c3..a0d4f999f 100644 --- a/rsbuild/vue/package.json +++ b/rsbuild/vue/package.json @@ -4,7 +4,7 @@ "private": true, "type": "module", "scripts": { - "build": "rsbuild build", + "build": "vue-tsc && rsbuild build", "dev": "rsbuild --open", "preview": "rsbuild preview" }, @@ -14,6 +14,8 @@ "devDependencies": { "@rsbuild/core": "2.1.6", "@rsbuild/plugin-vue": "^1.2.9", - "typescript": "^5.9.3" + "@types/node": "^24.12.4", + "typescript": "^5.9.3", + "vue-tsc": "^3.3.7" } } diff --git a/rsbuild/vue/src/env.d.ts b/rsbuild/vue/src/env.d.ts deleted file mode 100644 index 502e9f961..000000000 --- a/rsbuild/vue/src/env.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -/// - -declare module '*.vue' { - import type { DefineComponent } from 'vue'; - - // eslint-disable-next-line - const component: DefineComponent<{}, {}, any>; - export default component; -} diff --git a/rsbuild/vue/tsconfig.json b/rsbuild/vue/tsconfig.json index 864559715..0744c1e9a 100644 --- a/rsbuild/vue/tsconfig.json +++ b/rsbuild/vue/tsconfig.json @@ -6,11 +6,13 @@ "jsx": "preserve", "jsxImportSource": "vue", "strict": true, + "noEmit": true, "skipLibCheck": true, + "types": ["@rsbuild/core/types", "node"], "isolatedModules": true, "resolveJsonModule": true, "moduleResolution": "bundler", "useDefineForClassFields": true }, - "include": ["src"] + "include": ["src/**/*.ts", "src/**/*.tsx", "src/**/*.vue"] } diff --git a/rsdoctor/rsbuild/package.json b/rsdoctor/rsbuild/package.json index e08c7ce5f..7277c6848 100644 --- a/rsdoctor/rsbuild/package.json +++ b/rsdoctor/rsbuild/package.json @@ -18,9 +18,11 @@ "@rsbuild/core": "2.1.6", "@rsbuild/plugin-react": "^2.1.0", "@rsdoctor/rspack-plugin": "^1.5.12", + "@types/node": "^24.12.4", "@types/react": "^19.2.15", "@types/react-dom": "^19.2.3", "@types/semver6": "npm:@types/semver@7.7.1", + "@types/semver7": "npm:@types/semver@7.7.1", "typescript": "^5.9.3" } } diff --git a/rsdoctor/rsbuild/src/env.d.ts b/rsdoctor/rsbuild/src/env.d.ts deleted file mode 100644 index b0ac762b0..000000000 --- a/rsdoctor/rsbuild/src/env.d.ts +++ /dev/null @@ -1 +0,0 @@ -/// diff --git a/rsdoctor/rsbuild/tsconfig.json b/rsdoctor/rsbuild/tsconfig.json index 55cf294a3..5af95710c 100644 --- a/rsdoctor/rsbuild/tsconfig.json +++ b/rsdoctor/rsbuild/tsconfig.json @@ -10,6 +10,7 @@ "isolatedModules": true, "esModuleInterop": true, "skipLibCheck": true, + "types": ["@rsbuild/core/types", "node"], "noUnusedLocals": true, "noUnusedParameters": true, "jsx": "preserve", diff --git a/rsdoctor/rspack/package.json b/rsdoctor/rspack/package.json index 36b110a6e..f61ae5780 100644 --- a/rsdoctor/rspack/package.json +++ b/rsdoctor/rspack/package.json @@ -20,8 +20,12 @@ "@rspack/core": "2.1.4", "@rspack/dev-server": "2.1.0", "@rspack/plugin-react-refresh": "^2.0.1", + "@types/node": "^24.12.4", "@types/react": "^19.2.15", "@types/react-dom": "^19.2.3", - "react-refresh": "^0.18.0" + "@types/semver6": "npm:@types/semver@7.7.1", + "@types/semver7": "npm:@types/semver@7.7.1", + "react-refresh": "^0.18.0", + "typescript": "^5.9.3" } } diff --git a/rsdoctor/rspack/src/assets.d.ts b/rsdoctor/rspack/src/assets.d.ts new file mode 100644 index 000000000..35306c6fc --- /dev/null +++ b/rsdoctor/rspack/src/assets.d.ts @@ -0,0 +1 @@ +declare module '*.css'; diff --git a/rsdoctor/rspack/src/env.d.ts b/rsdoctor/rspack/src/env.d.ts deleted file mode 100644 index b0ac762b0..000000000 --- a/rsdoctor/rspack/src/env.d.ts +++ /dev/null @@ -1 +0,0 @@ -/// diff --git a/rsdoctor/rspack/tsconfig.json b/rsdoctor/rspack/tsconfig.json index 55cf294a3..3a81c00cc 100644 --- a/rsdoctor/rspack/tsconfig.json +++ b/rsdoctor/rspack/tsconfig.json @@ -10,6 +10,7 @@ "isolatedModules": true, "esModuleInterop": true, "skipLibCheck": true, + "types": ["@rspack/core/module", "node"], "noUnusedLocals": true, "noUnusedParameters": true, "jsx": "preserve", diff --git a/rslib/iife/tsconfig.json b/rslib/iife/tsconfig.json index 04f777405..e0e4a73f0 100644 --- a/rslib/iife/tsconfig.json +++ b/rslib/iife/tsconfig.json @@ -5,6 +5,7 @@ "noEmit": true, "strict": true, "skipLibCheck": true, + "types": ["@rslib/core/types"], "isolatedModules": true, "resolveJsonModule": true, "moduleResolution": "bundler", diff --git a/rslib/module-doc/tsconfig.json b/rslib/module-doc/tsconfig.json index 9dce281ea..45530e5b8 100644 --- a/rslib/module-doc/tsconfig.json +++ b/rslib/module-doc/tsconfig.json @@ -5,6 +5,7 @@ "target": "ES2020", "noEmit": true, "skipLibCheck": true, + "types": ["@rslib/core/types"], "useDefineForClassFields": true, /* modules */ diff --git a/rslib/module-federation/mf-host/package.json b/rslib/module-federation/mf-host/package.json index 3d17fbe08..142708d91 100644 --- a/rslib/module-federation/mf-host/package.json +++ b/rslib/module-federation/mf-host/package.json @@ -16,6 +16,7 @@ "@module-federation/rsbuild-plugin": "^2.5.0", "@rsbuild/core": "~2.1.6", "@rsbuild/plugin-react": "^2.1.0", + "@types/node": "^24.12.4", "@types/react": "^19.2.15", "@types/react-dom": "^19.2.3", "typescript": "^5.9.3" diff --git a/rslib/module-federation/mf-host/src/env.d.ts b/rslib/module-federation/mf-host/src/env.d.ts deleted file mode 100644 index b0ac762b0..000000000 --- a/rslib/module-federation/mf-host/src/env.d.ts +++ /dev/null @@ -1 +0,0 @@ -/// diff --git a/rslib/module-federation/mf-host/tsconfig.json b/rslib/module-federation/mf-host/tsconfig.json index 911834ad6..e42435611 100644 --- a/rslib/module-federation/mf-host/tsconfig.json +++ b/rslib/module-federation/mf-host/tsconfig.json @@ -6,6 +6,7 @@ "noEmit": true, "strict": true, "skipLibCheck": true, + "types": ["@rsbuild/core/types", "node"], "isolatedModules": true, "resolveJsonModule": true, "moduleResolution": "bundler", diff --git a/rslib/module-federation/mf-react-component/stories/index.stories.tsx b/rslib/module-federation/mf-react-component/stories/index.stories.tsx index b9b99a584..f072df122 100644 --- a/rslib/module-federation/mf-react-component/stories/index.stories.tsx +++ b/rslib/module-federation/mf-react-component/stories/index.stories.tsx @@ -1,4 +1,4 @@ -// @ts-expect-error ignore remote module type check for passing ci run build because we set @mf-types folder in .gitignore +// @ts-ignore ignore remote module type check for passing ci run build because we set @mf-types folder in .gitignore import { Counter } from 'rslib-module'; const Component = () => ; diff --git a/rslib/module-federation/mf-react-component/tsconfig.json b/rslib/module-federation/mf-react-component/tsconfig.json index 9e2b51623..1f44966d4 100644 --- a/rslib/module-federation/mf-react-component/tsconfig.json +++ b/rslib/module-federation/mf-react-component/tsconfig.json @@ -3,6 +3,7 @@ "jsx": "react-jsx", "strict": true, "skipLibCheck": true, + "types": ["@rslib/core/types"], "esModuleInterop": true, "paths": { "*": ["./@mf-types/*"] diff --git a/rslib/module-federation/mf-remote/package.json b/rslib/module-federation/mf-remote/package.json index 239af9555..fe3069c80 100644 --- a/rslib/module-federation/mf-remote/package.json +++ b/rslib/module-federation/mf-remote/package.json @@ -16,6 +16,7 @@ "@module-federation/rsbuild-plugin": "^2.5.0", "@rsbuild/core": "~2.1.6", "@rsbuild/plugin-react": "^2.1.0", + "@types/node": "^24.12.4", "@types/react": "^19.2.15", "@types/react-dom": "^19.2.3", "typescript": "^5.9.3" diff --git a/rslib/module-federation/mf-remote/src/env.d.ts b/rslib/module-federation/mf-remote/src/env.d.ts deleted file mode 100644 index b0ac762b0..000000000 --- a/rslib/module-federation/mf-remote/src/env.d.ts +++ /dev/null @@ -1 +0,0 @@ -/// diff --git a/rslib/module-federation/mf-remote/tsconfig.json b/rslib/module-federation/mf-remote/tsconfig.json index 28ff69d2f..df90c20d8 100644 --- a/rslib/module-federation/mf-remote/tsconfig.json +++ b/rslib/module-federation/mf-remote/tsconfig.json @@ -6,6 +6,7 @@ "noEmit": true, "strict": true, "skipLibCheck": true, + "types": ["@rsbuild/core/types", "node"], "isolatedModules": true, "resolveJsonModule": true, "moduleResolution": "bundler", diff --git a/rslib/node-basic/tsconfig.json b/rslib/node-basic/tsconfig.json index 64b77e489..31740f0f5 100644 --- a/rslib/node-basic/tsconfig.json +++ b/rslib/node-basic/tsconfig.json @@ -5,6 +5,7 @@ "noEmit": true, "strict": true, "skipLibCheck": true, + "types": ["@rslib/core/types"], "isolatedModules": true, "resolveJsonModule": true, "moduleResolution": "bundler", diff --git a/rslib/node-rstest/tsconfig.json b/rslib/node-rstest/tsconfig.json index 64b77e489..31740f0f5 100644 --- a/rslib/node-rstest/tsconfig.json +++ b/rslib/node-rstest/tsconfig.json @@ -5,6 +5,7 @@ "noEmit": true, "strict": true, "skipLibCheck": true, + "types": ["@rslib/core/types"], "isolatedModules": true, "resolveJsonModule": true, "moduleResolution": "bundler", diff --git a/rslib/preact/tsconfig.json b/rslib/preact/tsconfig.json index 20498a9f9..508b4ebc7 100644 --- a/rslib/preact/tsconfig.json +++ b/rslib/preact/tsconfig.json @@ -6,6 +6,7 @@ "jsxImportSource": "preact", "strict": true, "skipLibCheck": true, + "types": ["@rslib/core/types"], "isolatedModules": true, "resolveJsonModule": true, "moduleResolution": "bundler", diff --git a/rslib/react-basic/tsconfig.json b/rslib/react-basic/tsconfig.json index 510ab68df..d28e357df 100644 --- a/rslib/react-basic/tsconfig.json +++ b/rslib/react-basic/tsconfig.json @@ -5,6 +5,7 @@ "jsx": "react-jsx", "strict": true, "skipLibCheck": true, + "types": ["@rslib/core/types"], "isolatedModules": true, "resolveJsonModule": true, "moduleResolution": "bundler", diff --git a/rslib/react-compiler/tsconfig.json b/rslib/react-compiler/tsconfig.json index 510ab68df..d28e357df 100644 --- a/rslib/react-compiler/tsconfig.json +++ b/rslib/react-compiler/tsconfig.json @@ -5,6 +5,7 @@ "jsx": "react-jsx", "strict": true, "skipLibCheck": true, + "types": ["@rslib/core/types"], "isolatedModules": true, "resolveJsonModule": true, "moduleResolution": "bundler", diff --git a/rslib/react-css-module/src/env.d.ts b/rslib/react-css-module/src/env.d.ts deleted file mode 100644 index ce107c108..000000000 --- a/rslib/react-css-module/src/env.d.ts +++ /dev/null @@ -1 +0,0 @@ -/// diff --git a/rslib/react-css-module/tsconfig.json b/rslib/react-css-module/tsconfig.json index 510ab68df..d28e357df 100644 --- a/rslib/react-css-module/tsconfig.json +++ b/rslib/react-css-module/tsconfig.json @@ -5,6 +5,7 @@ "jsx": "react-jsx", "strict": true, "skipLibCheck": true, + "types": ["@rslib/core/types"], "isolatedModules": true, "resolveJsonModule": true, "moduleResolution": "bundler", diff --git a/rslib/react-less/src/env.d.ts b/rslib/react-less/src/env.d.ts deleted file mode 100644 index ce107c108..000000000 --- a/rslib/react-less/src/env.d.ts +++ /dev/null @@ -1 +0,0 @@ -/// diff --git a/rslib/react-less/tsconfig.json b/rslib/react-less/tsconfig.json index 510ab68df..d28e357df 100644 --- a/rslib/react-less/tsconfig.json +++ b/rslib/react-less/tsconfig.json @@ -5,6 +5,7 @@ "jsx": "react-jsx", "strict": true, "skipLibCheck": true, + "types": ["@rslib/core/types"], "isolatedModules": true, "resolveJsonModule": true, "moduleResolution": "bundler", diff --git a/rslib/react-rstest/tsconfig.json b/rslib/react-rstest/tsconfig.json index 510ab68df..d28e357df 100644 --- a/rslib/react-rstest/tsconfig.json +++ b/rslib/react-rstest/tsconfig.json @@ -5,6 +5,7 @@ "jsx": "react-jsx", "strict": true, "skipLibCheck": true, + "types": ["@rslib/core/types"], "isolatedModules": true, "resolveJsonModule": true, "moduleResolution": "bundler", diff --git a/rslib/react-sass/src/env.d.ts b/rslib/react-sass/src/env.d.ts deleted file mode 100644 index ce107c108..000000000 --- a/rslib/react-sass/src/env.d.ts +++ /dev/null @@ -1 +0,0 @@ -/// diff --git a/rslib/react-sass/tsconfig.json b/rslib/react-sass/tsconfig.json index 510ab68df..d28e357df 100644 --- a/rslib/react-sass/tsconfig.json +++ b/rslib/react-sass/tsconfig.json @@ -5,6 +5,7 @@ "jsx": "react-jsx", "strict": true, "skipLibCheck": true, + "types": ["@rslib/core/types"], "isolatedModules": true, "resolveJsonModule": true, "moduleResolution": "bundler", diff --git a/rslib/react-storybook/tsconfig.json b/rslib/react-storybook/tsconfig.json index 510ab68df..d28e357df 100644 --- a/rslib/react-storybook/tsconfig.json +++ b/rslib/react-storybook/tsconfig.json @@ -5,6 +5,7 @@ "jsx": "react-jsx", "strict": true, "skipLibCheck": true, + "types": ["@rslib/core/types"], "isolatedModules": true, "resolveJsonModule": true, "moduleResolution": "bundler", diff --git a/rslib/react-tailwindcss-v3/tsconfig.json b/rslib/react-tailwindcss-v3/tsconfig.json index 510ab68df..d28e357df 100644 --- a/rslib/react-tailwindcss-v3/tsconfig.json +++ b/rslib/react-tailwindcss-v3/tsconfig.json @@ -5,6 +5,7 @@ "jsx": "react-jsx", "strict": true, "skipLibCheck": true, + "types": ["@rslib/core/types"], "isolatedModules": true, "resolveJsonModule": true, "moduleResolution": "bundler", diff --git a/rslib/react-tailwindcss/tsconfig.json b/rslib/react-tailwindcss/tsconfig.json index 510ab68df..d28e357df 100644 --- a/rslib/react-tailwindcss/tsconfig.json +++ b/rslib/react-tailwindcss/tsconfig.json @@ -5,6 +5,7 @@ "jsx": "react-jsx", "strict": true, "skipLibCheck": true, + "types": ["@rslib/core/types"], "isolatedModules": true, "resolveJsonModule": true, "moduleResolution": "bundler", diff --git a/rslib/solid-basic/tsconfig.json b/rslib/solid-basic/tsconfig.json index 4e38397a1..57d4c149b 100644 --- a/rslib/solid-basic/tsconfig.json +++ b/rslib/solid-basic/tsconfig.json @@ -6,6 +6,7 @@ "jsxImportSource": "solid-js", "strict": true, "skipLibCheck": true, + "types": ["@rslib/core/types"], "isolatedModules": true, "resolveJsonModule": true, "moduleResolution": "bundler", diff --git a/rslib/solid-rstest/tsconfig.json b/rslib/solid-rstest/tsconfig.json index 4e38397a1..57d4c149b 100644 --- a/rslib/solid-rstest/tsconfig.json +++ b/rslib/solid-rstest/tsconfig.json @@ -6,6 +6,7 @@ "jsxImportSource": "solid-js", "strict": true, "skipLibCheck": true, + "types": ["@rslib/core/types"], "isolatedModules": true, "resolveJsonModule": true, "moduleResolution": "bundler", diff --git a/rslib/umd/src/env.d.ts b/rslib/umd/src/env.d.ts deleted file mode 100644 index ce107c108..000000000 --- a/rslib/umd/src/env.d.ts +++ /dev/null @@ -1 +0,0 @@ -/// diff --git a/rslib/umd/tsconfig.json b/rslib/umd/tsconfig.json index 510ab68df..d28e357df 100644 --- a/rslib/umd/tsconfig.json +++ b/rslib/umd/tsconfig.json @@ -5,6 +5,7 @@ "jsx": "react-jsx", "strict": true, "skipLibCheck": true, + "types": ["@rslib/core/types"], "isolatedModules": true, "resolveJsonModule": true, "moduleResolution": "bundler", diff --git a/rslib/vue-basic/package.json b/rslib/vue-basic/package.json index 2d877e5b4..9d3abc778 100644 --- a/rslib/vue-basic/package.json +++ b/rslib/vue-basic/package.json @@ -21,7 +21,7 @@ "@rslib/core": "^0.22.0", "typescript": "^5.9.3", "vue": "^3.5.35", - "vue-tsc": "^3.3.3" + "vue-tsc": "^3.3.7" }, "peerDependencies": { "vue": "^3.2.0" diff --git a/rslib/vue-basic/tsconfig.json b/rslib/vue-basic/tsconfig.json index 86a389fe0..fc72ef530 100644 --- a/rslib/vue-basic/tsconfig.json +++ b/rslib/vue-basic/tsconfig.json @@ -3,6 +3,7 @@ "lib": ["DOM", "ES2022"], "jsx": "preserve", "skipLibCheck": true, + "types": ["@rslib/core/types"], "jsxImportSource": "vue", "useDefineForClassFields": true, "declaration": true, diff --git a/rslib/vue-rstest/package.json b/rslib/vue-rstest/package.json index 980842b25..fa530f7f4 100644 --- a/rslib/vue-rstest/package.json +++ b/rslib/vue-rstest/package.json @@ -27,7 +27,7 @@ "jsdom": "^27.4.0", "typescript": "^5.9.3", "vue": "^3.5.35", - "vue-tsc": "^3.3.3" + "vue-tsc": "^3.3.7" }, "peerDependencies": { "vue": "^3.2.0" diff --git a/rslib/vue-rstest/tests/tsconfig.json b/rslib/vue-rstest/tests/tsconfig.json index 8935f17ed..625c1b77b 100644 --- a/rslib/vue-rstest/tests/tsconfig.json +++ b/rslib/vue-rstest/tests/tsconfig.json @@ -1,4 +1,7 @@ { "extends": "../tsconfig.json", + "compilerOptions": { + "rootDir": ".." + }, "include": [".", "../rstest.setup.ts"] } diff --git a/rslib/vue-rstest/tsconfig.json b/rslib/vue-rstest/tsconfig.json index 86a389fe0..fc72ef530 100644 --- a/rslib/vue-rstest/tsconfig.json +++ b/rslib/vue-rstest/tsconfig.json @@ -3,6 +3,7 @@ "lib": ["DOM", "ES2022"], "jsx": "preserve", "skipLibCheck": true, + "types": ["@rslib/core/types"], "jsxImportSource": "vue", "useDefineForClassFields": true, "declaration": true, diff --git a/rslib/vue-storybook/package.json b/rslib/vue-storybook/package.json index dea069a78..04439de08 100644 --- a/rslib/vue-storybook/package.json +++ b/rslib/vue-storybook/package.json @@ -29,7 +29,7 @@ "storybook-vue3-rsbuild": "^3.3.4", "typescript": "^5.9.3", "vue": "^3.5.35", - "vue-tsc": "^3.3.3" + "vue-tsc": "^3.3.7" }, "peerDependencies": { "vue": "^3.2.0" diff --git a/rslib/vue-storybook/tsconfig.json b/rslib/vue-storybook/tsconfig.json index 86a389fe0..fc72ef530 100644 --- a/rslib/vue-storybook/tsconfig.json +++ b/rslib/vue-storybook/tsconfig.json @@ -3,6 +3,7 @@ "lib": ["DOM", "ES2022"], "jsx": "preserve", "skipLibCheck": true, + "types": ["@rslib/core/types"], "jsxImportSource": "vue", "useDefineForClassFields": true, "declaration": true, diff --git a/rslib/web-worker/tsconfig.json b/rslib/web-worker/tsconfig.json index 04f777405..e0e4a73f0 100644 --- a/rslib/web-worker/tsconfig.json +++ b/rslib/web-worker/tsconfig.json @@ -5,6 +5,7 @@ "noEmit": true, "strict": true, "skipLibCheck": true, + "types": ["@rslib/core/types"], "isolatedModules": true, "resolveJsonModule": true, "moduleResolution": "bundler", diff --git a/rspack/basic-ts-config/package.json b/rspack/basic-ts-config/package.json index d9c672ff3..d78105c10 100644 --- a/rspack/basic-ts-config/package.json +++ b/rspack/basic-ts-config/package.json @@ -12,6 +12,7 @@ "@rspack/cli": "2.1.4", "@rspack/core": "2.1.4", "@rspack/dev-server": "2.1.0", + "@types/node": "^24.12.4", "typescript": "^5.9.3" } } diff --git a/rspack/basic-ts-config/tsconfig.json b/rspack/basic-ts-config/tsconfig.json index 154e7ebc5..e9b67c724 100644 --- a/rspack/basic-ts-config/tsconfig.json +++ b/rspack/basic-ts-config/tsconfig.json @@ -3,9 +3,11 @@ "target": "ES2020", "lib": ["DOM", "ES2020"], "module": "ESNext", + "allowJs": true, "noEmit": true, "strict": true, "skipLibCheck": true, + "types": ["@rspack/core/module", "node"], "isolatedModules": true, "resolveJsonModule": true, "moduleResolution": "bundler", diff --git a/rspack/basic-ts/package.json b/rspack/basic-ts/package.json index 58abea6f1..5f853bde3 100644 --- a/rspack/basic-ts/package.json +++ b/rspack/basic-ts/package.json @@ -13,6 +13,7 @@ "devDependencies": { "@rspack/cli": "2.1.4", "@rspack/core": "2.1.4", - "@rspack/dev-server": "2.1.0" + "@rspack/dev-server": "2.1.0", + "@types/node": "^24.12.4" } } diff --git a/rspack/basic-ts/tsconfig.json b/rspack/basic-ts/tsconfig.json index 8997a6930..b63799abd 100644 --- a/rspack/basic-ts/tsconfig.json +++ b/rspack/basic-ts/tsconfig.json @@ -1,6 +1,7 @@ { "include": ["./src"], "compilerOptions": { + "types": ["@rspack/core/module", "node"], "target": "es2016" /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */, "module": "commonjs" /* Specify what module code is generated. */, "paths": { diff --git a/rspack/cra-ts/package.json b/rspack/cra-ts/package.json index b56772f0a..a42ef1740 100644 --- a/rspack/cra-ts/package.json +++ b/rspack/cra-ts/package.json @@ -28,6 +28,8 @@ "@rspack/core": "2.1.4", "@rspack/dev-server": "2.1.0", "@rspack/plugin-react-refresh": "^2.0.1", + "@types/react": "^19.2.15", + "@types/react-dom": "^19.2.3", "react-refresh": "^0.18.0", "web-vitals": "^5.3.0" } diff --git a/rspack/javascript-api/src/index.ts b/rspack/javascript-api/src/index.ts index 51418475a..ac71dbb45 100644 --- a/rspack/javascript-api/src/index.ts +++ b/rspack/javascript-api/src/index.ts @@ -1,8 +1,8 @@ -import { rspack, RspackOptions, Stats } from '@rspack/core'; +import { rspack, type RspackOptions, type Stats } from '@rspack/core'; export default function build( options: RspackOptions, - callback: (err: Error | null, stats: Stats) => void, + callback: (err: Error | null, stats?: Stats) => void, ): void { rspack(options, callback); } diff --git a/rspack/javascript-api/tsconfig.json b/rspack/javascript-api/tsconfig.json index 6297758a8..03a9c218d 100644 --- a/rspack/javascript-api/tsconfig.json +++ b/rspack/javascript-api/tsconfig.json @@ -1,5 +1,6 @@ { "compilerOptions": { + "types": ["@rspack/core/module", "node"], "outDir": "./dist", "target": "es2016", "module": "commonjs", diff --git a/rspack/monaco-editor-ts-react/package.json b/rspack/monaco-editor-ts-react/package.json index f07997383..d61825bd1 100644 --- a/rspack/monaco-editor-ts-react/package.json +++ b/rspack/monaco-editor-ts-react/package.json @@ -17,6 +17,7 @@ "@rspack/cli": "2.1.4", "@rspack/core": "2.1.4", "@rspack/dev-server": "2.1.0", + "@types/node": "^24.12.4", "@types/react": "^19.2.15", "@types/react-dom": "^19.2.3", "typescript": "^5.9.3" diff --git a/rspack/monaco-editor-ts-react/src/assets.d.ts b/rspack/monaco-editor-ts-react/src/assets.d.ts new file mode 100644 index 000000000..35306c6fc --- /dev/null +++ b/rspack/monaco-editor-ts-react/src/assets.d.ts @@ -0,0 +1 @@ +declare module '*.css'; diff --git a/rspack/monaco-editor-ts-react/tsconfig.json b/rspack/monaco-editor-ts-react/tsconfig.json index 198ecf317..08ae59cd4 100644 --- a/rspack/monaco-editor-ts-react/tsconfig.json +++ b/rspack/monaco-editor-ts-react/tsconfig.json @@ -1,16 +1,15 @@ { "compilerOptions": { - "sourceMap": true, - "module": "ES2020", - "moduleResolution": "node", + "module": "ESNext", + "moduleResolution": "bundler", "strict": true, - "target": "ES6", - "outDir": "./dist", - "lib": ["dom", "es5", "es2015.collection", "es2015.promise"], - "types": [], - "jsx": "preserve", - "esModuleInterop": true, - "typeRoots": ["node_modules/@types"] + "target": "ES2020", + "noEmit": true, + "skipLibCheck": true, + "lib": ["DOM", "ES2020"], + "types": ["@rspack/core/module", "node"], + "jsx": "react-jsx", + "esModuleInterop": true }, "include": ["./src/**/*"], "exclude": ["node_modules"] diff --git a/rspack/nest-alias/package.json b/rspack/nest-alias/package.json index f290bdf0a..4dbafc67c 100644 --- a/rspack/nest-alias/package.json +++ b/rspack/nest-alias/package.json @@ -14,5 +14,8 @@ "lib1": "workspace:*", "lib2": "workspace:*", "typescript": "^5.9.3" + }, + "devDependencies": { + "@types/node": "^24.12.4" } } diff --git a/rspack/nest-alias/tsconfig.json b/rspack/nest-alias/tsconfig.json index 13426dc55..5e5411977 100644 --- a/rspack/nest-alias/tsconfig.json +++ b/rspack/nest-alias/tsconfig.json @@ -1,6 +1,7 @@ { "extends": "../../tsconfig.base.json", "compilerOptions": { + "types": ["@rspack/core/module", "node"], "outDir": "dist", "rootDir": "src" }, diff --git a/rspack/nestjs/package.json b/rspack/nestjs/package.json index c153e9b2d..a1ef0de4b 100644 --- a/rspack/nestjs/package.json +++ b/rspack/nestjs/package.json @@ -20,7 +20,9 @@ "@rspack/cli": "2.1.4", "@rspack/core": "2.1.4", "@rspack/dev-server": "2.1.0", + "@types/node": "^24.12.4", "cross-env": "10.1.0", + "typescript": "^5.9.3", "webpack-node-externals": "3.0.0" } } diff --git a/rspack/nestjs/tsconfig.json b/rspack/nestjs/tsconfig.json index cb364cc58..a1c40cea4 100644 --- a/rspack/nestjs/tsconfig.json +++ b/rspack/nestjs/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "types": ["@rspack/core/module"], + "types": ["@rspack/core/module", "node"], "module": "ESNext", "moduleResolution": "bundler", "declaration": true, @@ -11,7 +11,6 @@ "target": "ES2021", "sourceMap": true, "outDir": "./dist", - "baseUrl": "./", "incremental": true, "skipLibCheck": true }, diff --git a/rspack/react-compiler-babel-ts/package.json b/rspack/react-compiler-babel-ts/package.json index fd6cbc28a..ddc6a701e 100644 --- a/rspack/react-compiler-babel-ts/package.json +++ b/rspack/react-compiler-babel-ts/package.json @@ -19,6 +19,7 @@ "@rspack/cli": "2.1.4", "@rspack/core": "2.1.4", "@rspack/dev-server": "2.1.0", + "@types/node": "^24.12.4", "@types/react": "^19.2.15", "@types/react-dom": "^19.2.3", "babel-loader": "^10.1.1", diff --git a/rspack/react-compiler-babel-ts/src/assets.d.ts b/rspack/react-compiler-babel-ts/src/assets.d.ts new file mode 100644 index 000000000..35306c6fc --- /dev/null +++ b/rspack/react-compiler-babel-ts/src/assets.d.ts @@ -0,0 +1 @@ +declare module '*.css'; diff --git a/rspack/react-compiler-babel-ts/tsconfig.json b/rspack/react-compiler-babel-ts/tsconfig.json index e6b9bdf4e..49ce1c61d 100644 --- a/rspack/react-compiler-babel-ts/tsconfig.json +++ b/rspack/react-compiler-babel-ts/tsconfig.json @@ -6,6 +6,7 @@ "jsx": "react-jsx", "strict": true, "skipLibCheck": true, + "types": ["@rspack/core/module", "node"], "isolatedModules": true, "resolveJsonModule": true, "moduleResolution": "bundler", diff --git a/rspack/react-refresh-babel-loader/package.json b/rspack/react-refresh-babel-loader/package.json index 95c3f183a..db3eabcf1 100644 --- a/rspack/react-refresh-babel-loader/package.json +++ b/rspack/react-refresh-babel-loader/package.json @@ -19,6 +19,8 @@ "@rspack/core": "2.1.4", "@rspack/dev-server": "2.1.0", "@rspack/plugin-react-refresh": "^2.0.1", + "@types/react": "^19.2.15", + "@types/react-dom": "^19.2.3", "babel-loader": "^10.1.1", "react-refresh": "0.18.0" } diff --git a/rspack/react-refresh-esm/package.json b/rspack/react-refresh-esm/package.json index 0c14ce6d2..9dfa7c5a2 100644 --- a/rspack/react-refresh-esm/package.json +++ b/rspack/react-refresh-esm/package.json @@ -16,6 +16,8 @@ "@rspack/core": "2.1.4", "@rspack/dev-server": "2.1.0", "@rspack/plugin-react-refresh": "^2.0.1", + "@types/react": "^19.2.15", + "@types/react-dom": "^19.2.3", "react-refresh": "0.18.0" } } diff --git a/rspack/react-refresh/package.json b/rspack/react-refresh/package.json index b42feee34..54ebbe4a2 100644 --- a/rspack/react-refresh/package.json +++ b/rspack/react-refresh/package.json @@ -16,6 +16,8 @@ "@rspack/core": "2.1.4", "@rspack/dev-server": "2.1.0", "@rspack/plugin-react-refresh": "^2.0.1", + "@types/react": "^19.2.15", + "@types/react-dom": "^19.2.3", "react-refresh": "0.18.0" } } diff --git a/rspack/rspack-rsc/package.json b/rspack/rspack-rsc/package.json index 2b014de74..b2ea04860 100644 --- a/rspack/rspack-rsc/package.json +++ b/rspack/rspack-rsc/package.json @@ -13,6 +13,7 @@ "@rspack/dev-server": "2.1.0", "@rspack/plugin-react-refresh": "^2.0.1", "@types/express": "^5.0.6", + "@types/node": "^24.12.4", "@types/ws": "^8.18.1", "css-loader": "^7.1.4", "react-refresh": "^0.18.0", diff --git a/rspack/rspack-rsc/src/assets.d.ts b/rspack/rspack-rsc/src/assets.d.ts new file mode 100644 index 000000000..b6cc1b73b --- /dev/null +++ b/rspack/rspack-rsc/src/assets.d.ts @@ -0,0 +1,11 @@ +declare module '*.css'; + +declare module 'webpack-hot-middleware/client?*' { + type Event = { type: string } & Record; + + const client: { + subscribe(callback: (event: Event) => void): void; + }; + + export default client; +} diff --git a/rspack/rspack-rsc/src/framework/entry.rsc.tsx b/rspack/rspack-rsc/src/framework/entry.rsc.tsx index dd21c8102..15d10e4ef 100644 --- a/rspack/rspack-rsc/src/framework/entry.rsc.tsx +++ b/rspack/rspack-rsc/src/framework/entry.rsc.tsx @@ -73,6 +73,9 @@ async function handleRequest({ // aka progressive enhancement. const formData = await request.formData(); const decodedAction = await decodeAction(formData); + if (!decodedAction) { + return new Response('Bad Request: server action not found', { status: 400 }); + } try { const result = await decodedAction(); formState = (await decodeFormState(result, formData)) as ReactFormState; @@ -160,7 +163,12 @@ async function handler(request: Request, id?: number): Promise { } const fetch = (req: IncomingMessage, res: ServerResponse, id?: number) => - toNodeHandler((req) => handler(req, id))(req, res); + ( + toNodeHandler((req) => handler(req, id)) as ( + req: IncomingMessage, + res: ServerResponse, + ) => void + )(req, res); async function nodeHandler( req: IncomingMessage, diff --git a/rspack/rspack-rsc/tsconfig.json b/rspack/rspack-rsc/tsconfig.json index 61f43885e..81a0fd077 100644 --- a/rspack/rspack-rsc/tsconfig.json +++ b/rspack/rspack-rsc/tsconfig.json @@ -4,19 +4,19 @@ "target": "ES2020", "noEmit": true, "skipLibCheck": true, + "types": ["@rspack/core/module", "node"], "useDefineForClassFields": true, "jsx": "react-jsx", /* modules */ - "module": "nodenext", - "moduleResolution": "nodenext", + "module": "ESNext", + "moduleResolution": "bundler", "resolveJsonModule": true, "allowImportingTsExtensions": true, /* type checking */ "noUnusedLocals": true, - "noUnusedParameters": true, - "typeRoots": ["./node_modules/@types", "./types"] + "noUnusedParameters": true }, "include": ["src", "types"] } diff --git a/rspack/styled-components/package.json b/rspack/styled-components/package.json index 94363aebf..e8ec5b589 100644 --- a/rspack/styled-components/package.json +++ b/rspack/styled-components/package.json @@ -17,6 +17,8 @@ "@rspack/cli": "2.1.4", "@rspack/core": "2.1.4", "@rspack/dev-server": "2.1.0", + "@types/react": "^19.2.15", + "@types/react-dom": "^19.2.3", "react-refresh": "^0.18.0" } } diff --git a/rspack/svelte/src/assets.d.ts b/rspack/svelte/src/assets.d.ts new file mode 100644 index 000000000..df60bbfbf --- /dev/null +++ b/rspack/svelte/src/assets.d.ts @@ -0,0 +1,8 @@ +declare module '*.css'; + +declare module '*.svelte' { + import type { Component } from 'svelte'; + + const component: Component; + export default component; +} diff --git a/rspack/svelte/src/env.d.ts b/rspack/svelte/src/env.d.ts deleted file mode 100644 index 1a25456a2..000000000 --- a/rspack/svelte/src/env.d.ts +++ /dev/null @@ -1 +0,0 @@ -/// diff --git a/rspack/svelte/tsconfig.json b/rspack/svelte/tsconfig.json index ebd5e4b84..9f6b174be 100644 --- a/rspack/svelte/tsconfig.json +++ b/rspack/svelte/tsconfig.json @@ -3,6 +3,7 @@ "include": ["src/**/*", "src/node_modules/**/*"], "exclude": ["node_modules/*", "__sapper__/*", "static/*"], "compilerOptions": { + "types": ["@rspack/core/module", "node", "svelte"], "ignoreDeprecations": "5.0" } } diff --git a/rspack/ts-checker-rspack-plugin/package.json b/rspack/ts-checker-rspack-plugin/package.json index 817e7402a..9c207cd76 100644 --- a/rspack/ts-checker-rspack-plugin/package.json +++ b/rspack/ts-checker-rspack-plugin/package.json @@ -9,6 +9,7 @@ "@rspack/cli": "2.1.4", "@rspack/core": "2.1.4", "@rspack/dev-server": "2.1.0", + "@types/node": "^24.12.4", "ts-checker-rspack-plugin": "^1.3.1", "typescript": "^5.9.3" } diff --git a/rspack/ts-checker-rspack-plugin/tsconfig.json b/rspack/ts-checker-rspack-plugin/tsconfig.json index bbc944b8b..c97ea1e6d 100644 --- a/rspack/ts-checker-rspack-plugin/tsconfig.json +++ b/rspack/ts-checker-rspack-plugin/tsconfig.json @@ -1,5 +1,6 @@ { "compilerOptions": { + "types": ["@rspack/core/module", "node"], "allowJs": true, "lib": ["ES2015"], "outDir": "dist", diff --git a/rspack/vanilla-extract-css/package.json b/rspack/vanilla-extract-css/package.json index 19ad479d5..5757865a2 100644 --- a/rspack/vanilla-extract-css/package.json +++ b/rspack/vanilla-extract-css/package.json @@ -21,6 +21,7 @@ "tailwindcss": "3.4.19" }, "devDependencies": { + "@types/node": "^24.12.4", "@types/react": "^19.2.15", "@types/react-dom": "^19.2.3", "typescript": "^5.9.3" diff --git a/rspack/vanilla-extract-css/tsconfig.json b/rspack/vanilla-extract-css/tsconfig.json index e6b9bdf4e..49ce1c61d 100644 --- a/rspack/vanilla-extract-css/tsconfig.json +++ b/rspack/vanilla-extract-css/tsconfig.json @@ -6,6 +6,7 @@ "jsx": "react-jsx", "strict": true, "skipLibCheck": true, + "types": ["@rspack/core/module", "node"], "isolatedModules": true, "resolveJsonModule": true, "moduleResolution": "bundler", diff --git a/rspack/vue-tsx/global.d.ts b/rspack/vue-tsx/global.d.ts index 7ed767af6..f443876ff 100644 --- a/rspack/vue-tsx/global.d.ts +++ b/rspack/vue-tsx/global.d.ts @@ -1,2 +1,3 @@ +declare module '*.css'; declare module '*.svg'; declare module '*.vue'; diff --git a/rspack/vue-tsx/package.json b/rspack/vue-tsx/package.json index df130580c..c86c3743d 100644 --- a/rspack/vue-tsx/package.json +++ b/rspack/vue-tsx/package.json @@ -15,6 +15,7 @@ "@rspack/cli": "2.1.4", "@rspack/core": "2.1.4", "@rspack/dev-server": "2.1.0", + "@types/node": "^24.12.4", "@vue/babel-plugin-jsx": "2.0.1", "babel-loader": "10.1.1", "rspack-vue-loader": "^17.5.1", diff --git a/rspack/vue-tsx/tsconfig.json b/rspack/vue-tsx/tsconfig.json index 1bef7641e..797edec4f 100644 --- a/rspack/vue-tsx/tsconfig.json +++ b/rspack/vue-tsx/tsconfig.json @@ -1,7 +1,16 @@ { "compilerOptions": { + "lib": ["DOM", "ES2020"], "jsx": "preserve", - "isolatedModules": true, - "typeRoots": ["node_modules/@types"] - } + "jsxImportSource": "vue", + "target": "ES2020", + "noEmit": true, + "skipLibCheck": true, + "useDefineForClassFields": true, + "types": ["@rspack/core/module", "node"], + "resolveJsonModule": true, + "moduleResolution": "bundler", + "allowImportingTsExtensions": true + }, + "include": ["src", "global.d.ts"] } diff --git a/rspress/basic/package.json b/rspress/basic/package.json index 68af770a2..c1077598a 100644 --- a/rspress/basic/package.json +++ b/rspress/basic/package.json @@ -16,6 +16,7 @@ "@types/react": "^19.2.15", "@types/react-dom": "^19.2.3", "react": "^19.2.7", - "react-dom": "^19.2.7" + "react-dom": "^19.2.7", + "typescript": "^5.9.3" } } diff --git a/rspress/custom-theme/package.json b/rspress/custom-theme/package.json index 35d5476b3..4cfc1b4b8 100644 --- a/rspress/custom-theme/package.json +++ b/rspress/custom-theme/package.json @@ -16,6 +16,7 @@ "@types/react": "^19.2.15", "@types/react-dom": "^19.2.3", "react": "^19.2.7", - "react-dom": "^19.2.7" + "react-dom": "^19.2.7", + "typescript": "^5.9.3" } } diff --git a/rstest/browser-rsbuild-react/package.json b/rstest/browser-rsbuild-react/package.json index 7e41861b6..cd3491b54 100644 --- a/rstest/browser-rsbuild-react/package.json +++ b/rstest/browser-rsbuild-react/package.json @@ -18,6 +18,7 @@ "@rstest/core": "^0.10.3", "@testing-library/dom": "^10.4.1", "@testing-library/user-event": "^14.6.1", + "@types/node": "^24.12.4", "@types/react": "^19.2.15", "@types/react-dom": "^19.2.3", "playwright": "^1.60.0", diff --git a/rstest/browser-rsbuild-react/tsconfig.json b/rstest/browser-rsbuild-react/tsconfig.json index e039ed871..7c34979c6 100644 --- a/rstest/browser-rsbuild-react/tsconfig.json +++ b/rstest/browser-rsbuild-react/tsconfig.json @@ -7,11 +7,10 @@ "esModuleInterop": true, "skipLibCheck": true, "jsx": "react-jsx", - "types": ["@rstest/core"], - "baseUrl": ".", + "types": ["@rsbuild/core/types", "node", "@rstest/core"], "paths": { - "@/*": ["src/*"], - "@components/*": ["src/components/*"] + "@/*": ["./src/*"], + "@components/*": ["./src/components/*"] } }, "include": ["src", "tests", "rstest.config.ts", "rsbuild.config.ts"] diff --git a/rstest/browser-rsbuild-vanilla/package.json b/rstest/browser-rsbuild-vanilla/package.json index 7db5cb97e..cdd60421b 100644 --- a/rstest/browser-rsbuild-vanilla/package.json +++ b/rstest/browser-rsbuild-vanilla/package.json @@ -13,6 +13,7 @@ "@rsbuild/core": "2.1.6", "@rstest/browser": "^0.10.3", "@rstest/core": "^0.10.3", + "@types/node": "^24.12.4", "playwright": "^1.60.0", "typescript": "^5.9.3" } diff --git a/rstest/browser-rsbuild-vanilla/tsconfig.json b/rstest/browser-rsbuild-vanilla/tsconfig.json index 2156e6d36..773268e3d 100644 --- a/rstest/browser-rsbuild-vanilla/tsconfig.json +++ b/rstest/browser-rsbuild-vanilla/tsconfig.json @@ -6,7 +6,7 @@ "strict": true, "esModuleInterop": true, "skipLibCheck": true, - "types": ["@rstest/core"] + "types": ["@rsbuild/core/types", "node", "@rstest/core"] }, "include": ["src", "tests", "rstest.config.ts", "rsbuild.config.ts"] } diff --git a/rstest/rsbuild-adapter/package.json b/rstest/rsbuild-adapter/package.json index 00b5b4115..d5bc106f8 100644 --- a/rstest/rsbuild-adapter/package.json +++ b/rstest/rsbuild-adapter/package.json @@ -12,6 +12,7 @@ "@rsbuild/core": "2.1.6", "@rstest/adapter-rsbuild": "^0.10.3", "@rstest/core": "^0.10.3", + "@types/node": "^24.12.4", "happy-dom": "^20.9.0", "typescript": "^5.9.3" } diff --git a/rstest/rsbuild-adapter/tsconfig.json b/rstest/rsbuild-adapter/tsconfig.json index 71d7f7aab..1928e8471 100644 --- a/rstest/rsbuild-adapter/tsconfig.json +++ b/rstest/rsbuild-adapter/tsconfig.json @@ -6,12 +6,11 @@ "strict": true, "esModuleInterop": true, "skipLibCheck": true, - "baseUrl": ".", "paths": { "@/*": ["./src/*"], "@utils/*": ["./src/utils/*"] }, - "types": ["@rstest/core"] + "types": ["@rsbuild/core/types", "node", "@rstest/core"] }, "include": ["src", "tests", "rstest.config.ts", "rsbuild.config.ts"] } diff --git a/rstest/rsbuild-preact/package.json b/rstest/rsbuild-preact/package.json index aa58118a3..389f0f6ab 100644 --- a/rstest/rsbuild-preact/package.json +++ b/rstest/rsbuild-preact/package.json @@ -14,6 +14,7 @@ "@rsbuild/plugin-preact": "^1.7.3", "@rstest/adapter-rsbuild": "^0.10.3", "@rstest/core": "^0.10.3", + "@types/node": "^24.12.4", "happy-dom": "^20.9.0", "preact": "^10.29.2", "typescript": "^5.9.3" diff --git a/rstest/rsbuild-preact/tsconfig.json b/rstest/rsbuild-preact/tsconfig.json index 76dba154f..91d1b6b99 100644 --- a/rstest/rsbuild-preact/tsconfig.json +++ b/rstest/rsbuild-preact/tsconfig.json @@ -8,11 +8,10 @@ "skipLibCheck": true, "jsx": "react-jsx", "jsxImportSource": "preact", - "types": ["@rstest/core"], - "baseUrl": ".", + "types": ["@rsbuild/core/types", "node", "@rstest/core"], "paths": { - "@/*": ["src/*"], - "@components/*": ["src/components/*"] + "@/*": ["./src/*"], + "@components/*": ["./src/components/*"] } }, "include": ["src", "tests", "rstest.config.ts", "rsbuild.config.ts"] diff --git a/rstest/rsbuild-react/package.json b/rstest/rsbuild-react/package.json index a967be6e3..ff572fa4a 100644 --- a/rstest/rsbuild-react/package.json +++ b/rstest/rsbuild-react/package.json @@ -19,6 +19,7 @@ "@rstest/core": "^0.10.3", "@testing-library/jest-dom": "^6.9.1", "@testing-library/react": "^16.3.2", + "@types/node": "^24.12.4", "@types/react": "^19.2.15", "@types/react-dom": "^19.2.3", "typescript": "^5.9.3" diff --git a/rstest/rsbuild-react/src/env.d.ts b/rstest/rsbuild-react/src/env.d.ts deleted file mode 100644 index b0ac762b0..000000000 --- a/rstest/rsbuild-react/src/env.d.ts +++ /dev/null @@ -1 +0,0 @@ -/// diff --git a/rstest/rsbuild-react/tests/tsconfig.json b/rstest/rsbuild-react/tests/tsconfig.json index 7537ec340..eafa604ae 100644 --- a/rstest/rsbuild-react/tests/tsconfig.json +++ b/rstest/rsbuild-react/tests/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "types": ["@testing-library/jest-dom", "@rstest/core/globals"] + "types": ["@rsbuild/core/types", "node", "@testing-library/jest-dom", "@rstest/core/globals"] }, "extends": "../tsconfig.json", "include": ["./"] diff --git a/rstest/rsbuild-react/tsconfig.json b/rstest/rsbuild-react/tsconfig.json index e6b9bdf4e..9b3e500b8 100644 --- a/rstest/rsbuild-react/tsconfig.json +++ b/rstest/rsbuild-react/tsconfig.json @@ -6,6 +6,7 @@ "jsx": "react-jsx", "strict": true, "skipLibCheck": true, + "types": ["@rsbuild/core/types", "node"], "isolatedModules": true, "resolveJsonModule": true, "moduleResolution": "bundler", diff --git a/rstest/rsbuild-solid/package.json b/rstest/rsbuild-solid/package.json index 2122437a9..dde0d5735 100644 --- a/rstest/rsbuild-solid/package.json +++ b/rstest/rsbuild-solid/package.json @@ -15,6 +15,7 @@ "@rsbuild/plugin-solid": "^1.2.1", "@rstest/adapter-rsbuild": "^0.10.3", "@rstest/core": "^0.10.3", + "@types/node": "^24.12.4", "happy-dom": "^20.9.0", "solid-js": "^1.9.13", "typescript": "^5.9.3" diff --git a/rstest/rsbuild-solid/tsconfig.json b/rstest/rsbuild-solid/tsconfig.json index d58f36dc9..78c4a2370 100644 --- a/rstest/rsbuild-solid/tsconfig.json +++ b/rstest/rsbuild-solid/tsconfig.json @@ -8,11 +8,10 @@ "skipLibCheck": true, "jsx": "preserve", "jsxImportSource": "solid-js", - "types": ["@rstest/core"], - "baseUrl": ".", + "types": ["@rsbuild/core/types", "node", "@rstest/core"], "paths": { - "@/*": ["src/*"], - "@components/*": ["src/components/*"] + "@/*": ["./src/*"], + "@components/*": ["./src/components/*"] } }, "include": ["src", "tests", "rstest.config.ts", "rsbuild.config.ts"] diff --git a/rstest/rsbuild-svelte/package.json b/rstest/rsbuild-svelte/package.json index 79a56c3b9..a8c0ead68 100644 --- a/rstest/rsbuild-svelte/package.json +++ b/rstest/rsbuild-svelte/package.json @@ -14,6 +14,7 @@ "@rsbuild/plugin-svelte": "^1.1.2", "@rstest/adapter-rsbuild": "^0.10.3", "@rstest/core": "^0.10.3", + "@types/node": "^24.12.4", "happy-dom": "^20.9.0", "svelte": "^5.56.0", "typescript": "^5.9.3" diff --git a/rstest/rsbuild-svelte/src/env.d.ts b/rstest/rsbuild-svelte/src/env.d.ts deleted file mode 100644 index 796a3f691..000000000 --- a/rstest/rsbuild-svelte/src/env.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -/// -/// diff --git a/rstest/rsbuild-svelte/tsconfig.json b/rstest/rsbuild-svelte/tsconfig.json index 72615f86c..6154b9e91 100644 --- a/rstest/rsbuild-svelte/tsconfig.json +++ b/rstest/rsbuild-svelte/tsconfig.json @@ -7,11 +7,10 @@ "esModuleInterop": true, "skipLibCheck": true, "verbatimModuleSyntax": true, - "types": ["@rstest/core"], - "baseUrl": ".", + "types": ["@rsbuild/core/types", "node", "@rstest/core", "svelte"], "paths": { - "@/*": ["src/*"], - "@components/*": ["src/components/*"] + "@/*": ["./src/*"], + "@components/*": ["./src/components/*"] } }, "include": ["src", "tests", "rstest.config.ts", "rsbuild.config.ts"] diff --git a/rstest/rslib-adapter/tsconfig.json b/rstest/rslib-adapter/tsconfig.json index d774a831f..8ab23a39f 100644 --- a/rstest/rslib-adapter/tsconfig.json +++ b/rstest/rslib-adapter/tsconfig.json @@ -8,7 +8,6 @@ "skipLibCheck": true, "declaration": true, "outDir": "dist", - "baseUrl": ".", "paths": { "@/*": ["./src/*"], "@utils": ["./src/utils.ts"], diff --git a/rstest/rspack-adapter/package.json b/rstest/rspack-adapter/package.json index c4f4829de..fcbe1fe05 100644 --- a/rstest/rspack-adapter/package.json +++ b/rstest/rspack-adapter/package.json @@ -24,6 +24,7 @@ "@testing-library/dom": "^10.4.1", "@testing-library/jest-dom": "^6.9.1", "@testing-library/react": "^16.3.2", + "@types/node": "^24.12.4", "@types/react": "^19.2.15", "@types/react-dom": "^19.2.3", "happy-dom": "^20.9.0", diff --git a/rstest/rspack-adapter/src/assets.d.ts b/rstest/rspack-adapter/src/assets.d.ts new file mode 100644 index 000000000..054af67b4 --- /dev/null +++ b/rstest/rspack-adapter/src/assets.d.ts @@ -0,0 +1,5 @@ +declare module '*.css'; +declare module '*.svg' { + const url: string; + export default url; +} diff --git a/rstest/rspack-adapter/tests/tsconfig.json b/rstest/rspack-adapter/tests/tsconfig.json index 8a386d8ed..397fef2a2 100644 --- a/rstest/rspack-adapter/tests/tsconfig.json +++ b/rstest/rspack-adapter/tests/tsconfig.json @@ -1,7 +1,7 @@ { "extends": "../tsconfig.json", "compilerOptions": { - "types": ["@testing-library/jest-dom"] + "types": ["@rspack/core/module", "node", "@testing-library/jest-dom"] }, - "include": ["./"] + "include": ["./", "../src/assets.d.ts"] } diff --git a/rstest/rspack-adapter/tsconfig.json b/rstest/rspack-adapter/tsconfig.json index 4bcc25aef..5f1a91481 100644 --- a/rstest/rspack-adapter/tsconfig.json +++ b/rstest/rspack-adapter/tsconfig.json @@ -5,6 +5,7 @@ "target": "ES2020", "noEmit": true, "skipLibCheck": true, + "types": ["@rspack/core/module", "node"], "useDefineForClassFields": true, /* modules */ diff --git a/tsconfig.base.json b/tsconfig.base.json index dfb9e5550..868ff4de1 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1,8 +1,8 @@ { "compilerOptions": { - "module": "CommonJS", + "module": "NodeNext", "target": "ES2018", - "moduleResolution": "node", + "moduleResolution": "NodeNext", "esModuleInterop": true, "outDir": "dist", "declaration": true,