crypto-js-wasm icon indicating copy to clipboard operation
crypto-js-wasm copied to clipboard

貌似无法进行tree-shaking?

Open itmanyong opened this issue 1 year ago • 1 comments

即时只加载需要的wasm构建时也会全量构建,经过了gzip依然很大,相关code如下 image image

itmanyong avatar Jun 22 '24 19:06 itmanyong

个人理解,开源软件提供全部的功能,使用时如果只使用部分功能,tree-shaking应该在你使用侧打包时通过打包工具的配置实现,crypto-js-wasm作为功能提供方无需额外的配置

PeterAlfredLee avatar Jun 25 '24 01:06 PeterAlfredLee