Skip to content

Commit b4f52f2

Browse files
committed
chore: update
1 parent 339e77f commit b4f52f2

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

website/docs/en/guide/migration/tsup.mdx

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -64,24 +64,6 @@ Here is the corresponding Rslib configuration for tsup configuration:
6464
| terserOptions | [output.minify](/config/rsbuild/output) |
6565
| tsconfig | [source.tsconfigPath](/config/rsbuild/source) |
6666

67-
## Platform
68-
69-
For `platform`, tsup defaults to `node` as same as Rslib.
70-
71-
If your target platform is `node`, you do not need to configure it.
72-
73-
If your target platform is `browser`, you can set `output.target` to `web` in `rslib.config.ts`:
74-
75-
```ts title="rslib.config.ts"
76-
import { defineConfig } from '@rslib/core';
77-
78-
export default defineConfig({
79-
output: {
80-
target: 'web',
81-
},
82-
});
83-
```
84-
8567
## Contents Supplement
8668

8769
The current document only covers part of the migration process. If you find suitable content to add, feel free to contribute to the documentation via pull request 🤝.

0 commit comments

Comments
 (0)