diff --git a/docs/rsbuild/configure-build.md b/docs/rsbuild/configure-build.md index fd2eec30..ca068bd2 100644 --- a/docs/rsbuild/configure-build.md +++ b/docs/rsbuild/configure-build.md @@ -397,6 +397,8 @@ export default defineBuildConfig({ }); ``` +#### Typings + When you reference an SVG asset in TypeScript code, TypeScript may prompt that the module is missing a type definition: ```bash diff --git a/docs/rsbuild/configure-dev.md b/docs/rsbuild/configure-dev.md index c298587e..c598dcb3 100644 --- a/docs/rsbuild/configure-dev.md +++ b/docs/rsbuild/configure-dev.md @@ -451,6 +451,8 @@ export default defineDevConfig({ }); ``` +#### Typings + When you reference an SVG asset in TypeScript code, TypeScript may prompt that the module is missing a type definition: ```bash diff --git a/docs/rsbuild/migrate-from-webpack.md b/docs/rsbuild/migrate-from-webpack.md index c0aaae92..dc2f9484 100644 --- a/docs/rsbuild/migrate-from-webpack.md +++ b/docs/rsbuild/migrate-from-webpack.md @@ -9,7 +9,7 @@ toc: # Migrate from Webpack -To migrate from [@squide/firefly-webpack-configs](https://www.npmjs.com/package/@squide/firefly-webpack-configs) to `@squide/firefly-rsbuild-configs`, execute the following steps :point_down: +To migrate from [@squide/firefly-webpack-configs](https://www.npmjs.com/package/@squide/firefly-webpack-configs) to [@squide/firefly-rsbuild-configs](https://www.npmjs.com/package/@workleap/rsbuild-configs), execute the following steps :point_down: ## Update packages @@ -209,6 +209,13 @@ After: } ``` -### Try it :rocket: +## Typings + +If you're encountering typing issues, consider adding type declarations for the following + +- [SVGR](./configure-dev.md#typings) +- [CSS Module](./configure-dev.md#css-modules-typings) + +## Try it :rocket: Start the application in a development environment using the `dev` and `build` script. Everything should run smoothly without any warnings or errors outputted in the terminal.