Closed Zhang-Wei-666 closed 3 days ago
You use bundleless DTS which is like tsc, try to set dts.bundle: true
https://lib.rsbuild.dev/guide/advanced/dts#how-to-generate-dts-in-rslib
You use bundleless DTS which is like tsc, try to set
dts.bundle: true
https://lib.rsbuild.dev/guide/advanced/dts#how-to-generate-dts-in-rslib
这就涉及另一个问题了: #470
This brings us to another issue : #470
@Timeless0911
Version
Details
devDependencies 中的依赖未被打包进产物中
Dependencies in devDependencies have not been included in the build output.
Reproduce link
https://github.com/Zhang-Wei-666/rslib-bug-report/tree/1
Reproduce Steps
运行以下命令进行构建
查看打包产物 dist/index.d.ts 中可以发现
type-fest
未被打包进去根据 Handle Third-Party Dependencies 的描述, 默认情况下,
devDependencies
中的依赖是会被打包的Run the following command to build.
By checking the packaged product at dist/index.d.ts, it can be observed that
type-fest
has not been included in the package.According to the description in Handle Third-Party Dependencies, by default, dependencies in
devDependencies
will be bundled.