Skip to content

Commit 58842bd

Browse files
docs: Updated webpack to Rsbuild migration guide
1 parent 0aa0904 commit 58842bd

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

docs/rsbuild/configure-build.md

+2
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,8 @@ export default defineBuildConfig({
397397
});
398398
```
399399

400+
#### Typings
401+
400402
When you reference an SVG asset in TypeScript code, TypeScript may prompt that the module is missing a type definition:
401403

402404
```bash

docs/rsbuild/configure-dev.md

+2
Original file line numberDiff line numberDiff line change
@@ -451,6 +451,8 @@ export default defineDevConfig({
451451
});
452452
```
453453

454+
#### Typings
455+
454456
When you reference an SVG asset in TypeScript code, TypeScript may prompt that the module is missing a type definition:
455457

456458
```bash

docs/rsbuild/migrate-from-webpack.md

+9-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ toc:
99

1010
# Migrate from Webpack
1111

12-
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:
12+
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:
1313

1414
## Update packages
1515

@@ -209,6 +209,13 @@ After:
209209
}
210210
```
211211

212-
### Try it :rocket:
212+
## Typings
213+
214+
If you're encountering typing issues, consider adding type declarations for the following
215+
216+
- [SVGR](./configure-dev.md#typings)
217+
- [CSS Module](./configure-dev.md#css-modules-typings)
218+
219+
## Try it :rocket:
213220

214221
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.

0 commit comments

Comments
 (0)