Wang Zishi

Results 19 comments of Wang Zishi

![image](https://user-images.githubusercontent.com/8288105/65431210-a691d780-de4b-11e9-8735-04ab706d9881.png) issues with Chrome v77

I think the issue related to the way of packaging OSS in browser environment. Removing the promise polyfills may eliminate the issue.

@PeterRao But I think it's not. https://github.com/eKoopmans/html2pdf.js/issues/220

Maybe this is helpful, FYI https://github.com/Microsoft/TypeScript/issues/15202#issuecomment-297518643

> 调试了下和这个issue同样的问题,[angular/angular#32802](https://github.com/angular/angular/issues/32802) ,全局的Promise被ZoneAwarePromise覆盖了,ZoneAwarePromise中对stream的promise支持貌似有些问题。目前解决办法 > > 1. 和 @cuideqi 提供的一样,暂时用callback,不用 fetch 的 stream 方式。 > 2. 替换掉ali-oss中所有系统的Promise,使用第三方的库。这种方式不太赞同。 > > ``` > var _Promise = require('any-promise'); > ``` > > PS: 下个版本我们会考虑默认...

ali-oss 这个包现在真的是太大太大的,刚刚看了看,没有 minify 的时候,149KiB/2.2MiB, 近乎95%+以上都是 polyfills,这个真的是太恐怖了。

即使是目标希望共用代码,是否可以选择让 node 去兼容 web 实现?例如使用 WHATWG URL、fetch api 以及 WebCrypto API 之类的呢?这些 polyfills 加在 node 环境中几乎是无关痛痒的事,但是在 web 环境中的真的影响很大。

![image](https://user-images.githubusercontent.com/8288105/65495281-199d5b80-dee9-11e9-883a-58c2cbc55832.png) ![image](https://user-images.githubusercontent.com/8288105/65495338-32a60c80-dee9-11e9-8033-a0b1f75c3afb.png) ![image](https://user-images.githubusercontent.com/8288105/65495380-3e91ce80-dee9-11e9-9c78-691a8dbf1678.png) @PeterRao [aliasify](https://github.com/benbria/aliasify) 这个貌似早已不在维护,不支持甚多的 ES2015 语法,这阻碍了我们想要直接输出 target 更高的代码。需要自己写 crypto shim 是为了 md5 吗?

要是在有Node.js+mongoDB版的话,这个框架绝对是教科书级别的了

可以提供报错信息吗?