DesignLiquido / xslt-processor

A JavaScript XSLT processor without native library dependencies
GNU Lesser General Public License v3.0
102 stars 31 forks source link

Feature request: distribute as transpiled output to support older browsers #6

Closed karfau closed 5 years ago

karfau commented 5 years ago

As discussed in this commit conversation it would be nice to distribute the library in a transpiled way so it supports "older browsers". The reason for our fork that moves default arguments methods into the methods was that we need to support chrome 48 which failed with a syntax error when loading this library.

Any hints for how to achieve this can be collected here, contributions seem to be welcome.

Anything to add @johanneswilm ?

Mentioning @saurabh2590 here that created the fork and commits.

johanneswilm commented 5 years ago

I would guess that the simplest would be to add a built target using the rollup buble plugin to transpile to ES5.

karfau commented 4 years ago

I just checked that this issue has not been resolved from our perspective, since it's not working in Chrome 48:

Uncaught SyntaxError: Unexpected token =

@johanneswilm Can you please help me to understand, how to deal with this since you closed the ticket? (our own fork is way behind this repo now and has security issues now, so we would prefer to switch back to the npm version.)