The configuration of sourceMap is complex and not simple enough #467
zhangfisher
started this conversation in
General
Replies: 1 comment
-
The configuration of tsup looks flatter than that of Rslib. This is because Rslib chooses to inherit the Rsbuild configuration, which allows Rslib to provide richer and more fine-grained options than tsup. And we will simplify the source map config in the next release, see web-infra-dev/rsbuild#4037. Example: lib: [
{
format: 'esm',
output: {
sourceMap: true,
distPath: {
root: './dist/',
},
},
},
]; |
Beta Was this translation helpful? Give feedback.
0 replies
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.
Uh oh!
There was an error while loading. Please reload this page.
-
吐槽一下,配置生成
sourceMap
的配置如下:为什么不能是:
文档本身就不清楚,应该提供
sourceMap:true
这样的配置作为最佳实践。之所以提供
rslib
就是要简化,这点tsup
的配置就比较值得配置。相较而言
rslib
的配置比较不直观Beta Was this translation helpful? Give feedback.
All reactions