ef4 / ember-browserify

ember-cli addon for easily loading CommonJS packages from npm via browserify.
MIT License
172 stars 28 forks source link

Misses imports from modules that include some esnext features #6

Closed ef4 closed 9 years ago

ef4 commented 9 years ago

If you use certain esnext features in a module, like:

var [ a, b ] = [1, 2];

And let ember-cli-esnext transform them for you, esnext inserts code at the beginning of the module, before your import statements. This is causing us to miss those import statements.

I filed a corresponding issue in petal. But this could also be a bug in esprima or esnext.

ef4 commented 9 years ago

Closed in 4cd8896104bae0cc2629c0e96af1ee6dc78b9720