How to implement noExternal configuration similar to tsup #433
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? |
Beta Was this translation helpful? Give feedback.
-
@fi3ework 我这边有场景,我有一个包有多个 exports,但是我想要打包其中一部分导出,另外一部分导出不打包,这时候就需要 noExternal 举个例子,包 A 都多个 exports:A/B 和 A/C |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
如何实现类似
tsup
的noExternal
配置,用来将某个外部依赖与库一起打包?在现有的配置中找不到相关的配置,
autoExternal
好象不是干这活的Beta Was this translation helpful? Give feedback.
All reactions