Skip to content

Commit

Permalink
docs: Updated webpack to Rsbuild migration guide
Browse files Browse the repository at this point in the history
  • Loading branch information
patricklafrance committed Dec 16, 2024
1 parent 0aa0904 commit 58842bd
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
2 changes: 2 additions & 0 deletions docs/rsbuild/configure-build.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions docs/rsbuild/configure-dev.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
11 changes: 9 additions & 2 deletions docs/rsbuild/migrate-from-webpack.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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.

0 comments on commit 58842bd

Please sign in to comment.