rough-stuff / rough

Create graphics with a hand-drawn, sketchy, appearance
http://roughjs.com
MIT License
19.94k stars 617 forks source link

Generate ES5 bundles with tsc #92

Closed Nalca closed 5 years ago

Nalca commented 5 years ago

Instead of using babel to generate ES6, I used rollup + typescript with a different target, depending on the bundle.

Should fix #47

Now, only the minifier use babel. Maybe we should use https://github.com/TrySound/rollup-plugin-terser instead of babel-minify

Nalca commented 5 years ago

It do not include Promise polyfill, but it's probably better left to the user.

pshihn commented 5 years ago

Thanks for the PR. I have limited time during the holidays, but will take some time to look at this sometime soon. Cheerts!

pshihn commented 5 years ago

Thanks. I have incorporated this in 3.0 build. It was too much of a refactor to pull in this particular request.