lasso-js / lasso

Advanced JavaScript module bundler, asset pipeline and optimizer
581 stars 75 forks source link

#221 - Switch to async/await and major Lasso refactors #222

Closed austinkelleher closed 6 years ago

austinkelleher commented 7 years ago

To summarize the changes:

The functional changes resulted in ~1500 lines of code reduction

I split the PR into 3 main commits. One that has most of the functional changes, the second that contains the external Lasso modules being pulled into core, and the 3rd being eslint fixes.

Most of the functional changes are in this commit: https://github.com/lasso-js/lasso/pull/222/commits/b7d65ac971ac13a273e50ad64457c281b420aea0

Ultimately, I think this may be a good time to change the name of Lasso to something else. These changes are major breaking and will only support Node 8+.

philidem commented 7 years ago

I'm glad you didn't have to change many files :)

philidem commented 7 years ago

I agree -- good time to start discussing rename.

philidem commented 7 years ago

Also, maybe in future PR, switch to using let/const

philidem commented 7 years ago

Did you verify error handling with a outermost .catch(...) clause? Just want to make sure errors don't get eaten.

austinkelleher commented 7 years ago

As a follow-up, I want to actually revisit a lot of this code and refactor. This would include let/const, removing a lot of old modules that aren't relevant anymore, rethinking some algorithms, and perhaps remove some streaming support. The streaming code is pretty complicated and I think only useful in a few scenarios.