Skip to content

Commit

Permalink
docs: polish migration wordings (#7117)
Browse files Browse the repository at this point in the history
  • Loading branch information
h-a-n-a authored Jul 11, 2024
1 parent 8488461 commit bc32656
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion website/docs/en/blog/announcing-0-6.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ module.exports = {
};
```
### Migrate builtins.css
### Migrate from builtins.css
1. Use `module.parser["css/auto"].namedExports` to replace `builtins.css.namedExports`.
2. Use `module.generator["css/auto"].exportsOnly` to replace `builtins.css.modules.exportsOnly`.
Expand Down
2 changes: 1 addition & 1 deletion website/docs/en/guide/migration/cra.mdx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Migrate Create React App
# Migrate from Create React App

Because Create React App (CRA) itself has many built-in capabilities, manually setting up an equivalent configuration using `@rspack/cli` can be challenging. Therefore, we recommend migrating CRA applications to [Rsbuild](https://rsbuild.dev/) to leverage Rspack's capabilities.

Expand Down
2 changes: 1 addition & 1 deletion website/docs/en/guide/migration/storybook.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { PackageManagerTabs } from '@theme';

# Migrating Storybook
# Migrate from Storybook webpack

If you are using React / Vue with [Storybook](https://storybook.js.org/) and building with webpack 5, you can replace the `@storybook/react-webpack5` build with [storybook-rsbuild](https://github.com/rspack-contrib/storybook-rsbuild), which is implemented based on Rsbuild and uses Rspack as the underlying bundler. It supports out-of-the-box use, and the documentation can be found at [storybook-rsbuild](https://github.com/rspack-contrib/storybook-rsbuild).

Expand Down
2 changes: 1 addition & 1 deletion website/docs/en/guide/migration/webpack.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { PackageManagerTabs } from '@theme';

# Migrate webpack
# Migrate from webpack

Rspack's configuration is designed based on webpack, enabling you to migrate your project from webpack to Rspack with ease.

Expand Down

0 comments on commit bc32656

Please sign in to comment.