How to implement noExternal configuration similar to tsup #433
Unanswered
zhangfisher
asked this question in
Q&A
Replies: 2 comments 3 replies
|
一般来说,autoExternal 已经足够应对大多数场景了,如果你不想打包某个库,可以直接将它放进 peerDep 或者 dep 即可达到目的 https://lib.rsbuild.dev/config/lib/auto-external 现在有遇到 autoExternal 无法满足的场景吗? Generally speaking, autoExternal is enough to handle most scenarios. If you don't want to bundle a library, you can directly put it into peerDep or dep to achieve the purpose https://lib.rsbuild.dev/config/lib/auto-external. Are there any scenarios that autoExternal can't satisfy now? |
2 replies
|
@fi3ework 我这边有场景,我有一个包有多个 exports,但是我想要打包其中一部分导出,另外一部分导出不打包,这时候就需要 noExternal 举个例子,包 A 都多个 exports:A/B 和 A/C |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
如何实现类似
tsup的noExternal配置,用来将某个外部依赖与库一起打包?在现有的配置中找不到相关的配置,
autoExternal好象不是干这活的All reactions