Skip to content

Commit

Permalink
chore: update
Browse files Browse the repository at this point in the history
  • Loading branch information
Timeless0911 committed Nov 11, 2024
1 parent 339e77f commit b4f52f2
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions website/docs/en/guide/migration/tsup.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -64,24 +64,6 @@ Here is the corresponding Rslib configuration for tsup configuration:
| terserOptions | [output.minify](/config/rsbuild/output) |
| tsconfig | [source.tsconfigPath](/config/rsbuild/source) |

## Platform

For `platform`, tsup defaults to `node` as same as Rslib.

If your target platform is `node`, you do not need to configure it.

If your target platform is `browser`, you can set `output.target` to `web` in `rslib.config.ts`:

```ts title="rslib.config.ts"
import { defineConfig } from '@rslib/core';

export default defineConfig({
output: {
target: 'web',
},
});
```

## Contents Supplement

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 🤝.
Expand Down

0 comments on commit b4f52f2

Please sign in to comment.