-
-
Notifications
You must be signed in to change notification settings - Fork 58
Closed
Labels
Description
What problem does this feature solve?
For js outputs, Rsbuild will automatically clean distPath, see more details https://rsbuild.dev/config/output/clean-dist-path#outputcleandistpath
And for DTS outputs, we should also support to control the behaviour of clean DTS distPath after below code:
rslib/packages/plugin-dts/src/index.ts
Line 63 in 4b5f674
| options.distPath = options.distPath ?? config.output?.distPath?.root; |
The default value of clean should directly read from output.cleanDistPath
- if it is false value, do not remove DTS distPath
- otherwise, just remove DTS distPath