google / traceur-compiler

Traceur is a JavaScript.next-to-JavaScript-of-today compiler
Apache License 2.0
8.17k stars 580 forks source link

Add modules ignore option #2010

Closed guybedford closed 8 years ago

guybedford commented 8 years ago

I'm in the process of splitting SystemJS out so that transpilation always happens through plugins and not as part of SystemJS core itself.

In order to construct a Traceur plugin that can optimize ES modules nicely for builds, the ability to ignore module syntax entirely would be incredibly useful.

arv commented 8 years ago

--modules-parse used to work to do this but it broke over the years.

Can you rename ignore to parse? Our options are covering both parsing and transforming and ignore does not make it clear that parsing is supported.

Other than that, this is a very useful feature.

guybedford commented 8 years ago

Thanks for the quick response, sure I've renamed this to parse.

arv commented 8 years ago

LGTM

guybedford commented 8 years ago

Thanks for the quick review!