microsoft / tslib

Runtime library for TypeScript helpers.
BSD Zero Clause License
1.24k stars 124 forks source link

Stop using es6 syntax in the es6 file #216

Closed andrewbranch closed 1 year ago

andrewbranch commented 1 year ago

This probably fixes #205

rbuckton commented 1 year ago

I'm a bit confused by why this fix is necessary. When I added tslib.es6.js it was primarily to use native es2015 syntax such as export. This sounds more like a misconfiguration in Uglify or the project referencing this?

rbuckton commented 1 year ago

It looks like the export default itself was added at some point as a workaround for ES module interop. Maybe this is fine, but both fixes seem out of place and the result of someone misconfiguring things on their end.

andrewbranch commented 1 year ago

I totally agree, see the discussion at #205