Closed imloama closed 5 years ago
这个错误是从一个 Promise 中抛出来的,但不是 Promise polyfill 本身的错误,而是你引用的库的某个调用的问题。从网上查到的信息来看,这个应该是 Emscripten 编译的本地模块导致的,而且应该跟 Chrome extension 的 CSP 策略有关。 https://github.com/kripken/emscripten/issues/5911#issuecomment-366029402
谢谢 @sodatea
通过设置config.optimization.minimize(false),还原所有变量原始名称,确认是依赖的依赖中的js-nacl导致的,纯前台方式没问题,如果用chrome extension的形式打开,会出现错误,暂时未解决,不影响业务。
Version
3.3.0
Reproduction link
https://github.com/imloama/fireflywallet-chrome
Environment info
Steps to reproduce
What is expected?
取消强制引用的es6.promise
What is actually happening?
无法取消es6.promise