node-wpapi icon indicating copy to clipboard operation
node-wpapi copied to clipboard

Not compatible with IE11

Open danielroe opened this issue 6 years ago • 3 comments

The documentation states:

In the browser node-wpapi officially supports the latest two versions of all evergreen browsers, and Internet Explorer 11.

However, the compiled version of this module (in at least v1.2.1 and v2 alpha) uses arrow functions which do not work in IE11 and Edge.

danielroe avatar Apr 18 '19 20:04 danielroe

It also doesn't work in Safari 9 and below for this reason

Jamiewarb avatar Jun 07 '19 13:06 Jamiewarb

Agree this is a huge issue. On Edge the following error:

wp-request

Unexpected identifier, string or number

andrewmclagan avatar Sep 19 '19 00:09 andrewmclagan

Spread operator not supported in edge. https://caniuse.com/#search=spread%20operator

Interesting as the babel config seems to have @babel/plugin-proposal-object-rest-spread although there are ALLOT of spread operators in the node_modules of the installed library. Its this perhaps a mis-config of Webpack / Babel?

andrewmclagan avatar Sep 19 '19 01:09 andrewmclagan