yoshuawuyts / es2020

Because in hindsight we don't need most of ES6
MIT License
126 stars 14 forks source link

es2020 with yo-yoify #15

Closed okdistribute closed 8 years ago

okdistribute commented 8 years ago

hey @yoshuawuyts and @shama,

It seems like using browserify -g yo-yoify -t es2020 app.js > bundle.js is giving

app.js:56628 Uncaught TypeError: yo is not a function

For now, we just turned off es2020, but it'd be nice to have it so we can use uglifyjs with yo-yo

/cc @laurengarcia

yoshuawuyts commented 8 years ago

uh oh, that doesn't sound good - I think it's because local transforms (-t) are run before global transforms (-g) and that messes up the yo-yoify bits. I think the solution here is to run:

$ browserify -g yo-yoify -g es2020 app.js > bundle.js

Let me know if that works for you :sparkles:

okdistribute commented 8 years ago

@yoshuawuyts awesome!!! that worked!

okdistribute commented 8 years ago

thank you!

laurengarcia commented 8 years ago

!!! big ups, thanks