queerviolet / bones

MIT License
36 stars 119 forks source link

feat(babel): switch to preset-env, support async/await via polyfill #50

Closed glebec closed 7 years ago

glebec commented 7 years ago

Closes #81, closes #104, closes #105.

Only flaw with this PR is that it doubles down on the unnecessary transpilation of server code during testing. Better would be to selectively transpile only front-end code, since we don't transpile the server during runtime anyway. Other than that, this setup using babel-preset-env and babel-polyfill together seems to be the cutting edge of supporting environments as they evolve, rather than targeting specific features or ES versions.

glebec commented 7 years ago

Ugh, as often happens, this PR was opened against the parent repo (queerviolet) instead of the fork (fullstackacademy). My No. 1 pet peeve about GitHub forks.