You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The main reason raising the issue is that common approach for such npm packages is being supportable by any browser. One of the way to reach it out is to transpile code written in ES6 to ES5 before moving it to npm repo. I know that this is a discussable question whether it should be consuming developer's or the library developer's responsibility of transpiling the library. But as easier to use your product for your customers as better for you, right?
To Reproduce
As the result, the outgoing error SCRIPT1028: Expected identifier, string or number appears using EDGE browser any version. ES6 rest operator has not been transpiled to ES5, and EDGE doesn't support rest operator unlike Chrome, Firefox etc.
Describe the bug
The main reason raising the issue is that common approach for such npm packages is being supportable by any browser. One of the way to reach it out is to transpile code written in ES6 to ES5 before moving it to npm repo. I know that this is a discussable question whether it should be consuming developer's or the library developer's responsibility of transpiling the library. But as easier to use your product for your customers as better for you, right?
To Reproduce
As the result, the outgoing error
SCRIPT1028: Expected identifier, string or number
appears using EDGE browser any version. ES6 rest operator has not been transpiled to ES5, and EDGE doesn't support rest operator unlike Chrome, Firefox etc.Code reference:
/react-calendar-timeline/src/lib/utility/calendar.js:624
Expected behavior
The code of the library is transpiled to ES5 (on npm).
Library Version
any
Desktop (please complete the following information):
To see the example of caused issue:
The text was updated successfully, but these errors were encountered: