Zheng Kenghong

Results 3 comments of Zheng Kenghong

> 其实原因很简单,那就是 forEach 只支持同步代码。 原因感觉描述的不是很且当哈,[参考](https://stackoverflow.com/questions/37576685/using-async-await-with-a-foreach-loop/37576787#37576787): > Each of the async callback function calls does return a promise, but you're throwing them away instead of awaiting them

Looking forward to have this option supported. We are currently working on a library including a large webassembly file(10M plus). It's not possible to publish this library as a single...

I wrote a plugin to "external" assets in library mode: https://gist.github.com/ZKHelloworld/4d518583b90ddcb4762d49c102a42054 usage: ``` plugins: [ viteLibraryAssetExternal({ test: /.*(png|jpg|jpeg)$/, // assets to external include: ['.ts', '.tsx', '.js', '.jsx'], // source file...