twgl.js icon indicating copy to clipboard operation
twgl.js copied to clipboard

ES2015 build

Open sebastien opened this issue 6 years ago • 2 comments

I just noticed that the current builds of TWGL are featuring ES6 syntax, do you think it would be possible to generate pure ES5 files suitable for distribution? Some browsers like iOS Safari sometimes have relatively patchy support for ES6.

sebastien avatar Jan 30 '19 22:01 sebastien

Sorry about that, should be fixed in 4.8.2

greggman avatar Feb 01 '19 07:02 greggman

Wow, that was fast! The only problem I see now is that there is trailing ; in the build https://github.com/greggman/twgl.js/blob/master/dist/4.x/twgl-full.js#L10439. Not sure why that is, but it makes the module a statement as opposed to an expression, which cause some problems. Is there a configuration option to remove it?

sebastien avatar Feb 01 '19 14:02 sebastien