0

I want to run my ES6 though Traceur. However I would also like to use Webpack which can accept AMD modules or commonjs.

I was wondering if traceur gone through any steps to be compatible (ES5 output maintains requires+defines etc) with these and whether I can go ahead with my Webpack builds not worrying about Traceur.

Nikos
  • 6,553
  • 6
  • 43
  • 76

2 Answers2

1

The established module systems, i.e. AMD & CommonJS all still work. Traceur does some pretty straightforward source translation – akin to CoffeeScript – and old-style module definitions are not affected.

ES6 modules and imports/exports are not yet properly implemented in Traceur, so you won't be able to use those yet.

lyschoening
  • 16,412
  • 10
  • 37
  • 50
0

import/export is fully implemented, but there is still work to be done on the loader. You can use CommonJS or AMD

Brett
  • 2,536
  • 6
  • 28
  • 48