admin管理员组文章数量:1122832
What is the option, or are the options, for SWC in order not to compile? I only want to use the minifier. I'm bundling with Rollup and I came across this plugin, rollup-plugin-swc-minify, but it sets hardcoded options that I don't want.
I am new to this supermarket of JavaScript packages and packaging, thus new to SWC too. I assume this there is a simple way to do this - though the readme for that rollup plugin makes it sound complicated. Regardless, I haven't been able to figure it out from the SWC docs so far.
I could fork that plugin and change the options, but I'd rather switch to the official @rollup/plugin-swc, which I assume allows me to use a .swcrc
file for configuration.
本文标签: rollupjsHow to only minifynot compilewith SWCStack Overflow
版权声明:本文标题:rollupjs - How to only minify, not compile, with SWC? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736301716a1931272.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论