gildas-lormeau/zip.js

[Compatibility issues] parameter initialization

nenge123 opened this issue · 2 comments

class  {
    constructor(options={}){ ...}
}

Some packaged OEM browsers do not support. like "Tencent QQ mobile browser","WeChat browser"

class  {
    constructor(options){options=options||{}; ...}
}

This feature has been introduced 8 years ago in ES2015. You should use babel to build your project. I am sorry but I have no intention of making the library compatible in such old environments.

BTW, I already provide a script to compile zip.js with babel for older runtimes. You just have to clone the project and follow the instructions in the comments here: https://github.com/gildas-lormeau/zip.js/blob/master/rollup-es5.config.js