Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions website/docs/en/config/lib/exports.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ type Exports =

Generates the `exports` field in `package.json` from the build outputs after the build completes.

Thanks to [tsdown](https://tsdown.dev/options/package-exports) by [Kevin Deng](https://github.com/sxzz) for inspiring this feature.

```ts title="rslib.config.ts"
export default defineConfig({
dts: true,
Expand Down
2 changes: 2 additions & 0 deletions website/docs/zh/config/lib/exports.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ type Exports =

在构建完成后根据产物生成 `package.json` 中的 `exports` 字段。

感谢 [Kevin Deng](https://github.com/sxzz) 开发的 [tsdown](https://tsdown.dev/options/package-exports) 为此功能提供灵感。

```ts title="rslib.config.ts"
export default defineConfig({
dts: true,
Expand Down
Loading