Also, would you always choose to go with CommonJS over UMD? (I've chosen CommonJS2 but wasn't really sure of the diff from CommonJS!)
-
-
Replying to @glenathan
@glenathan would always do that but am using quite a few es6 features & require babel transpiling. have previously babeled individual files1 reply 0 retweets 0 likes -
Replying to @glenathan
@glenathan yeah, keeps the footprint the same but makes dev more painful. Just bundled a package as it was intended to be one entry point1 reply 0 retweets 0 likes -
Replying to @glenathan
@glenathan also stack traces don't match up to original files and it's harder to read the built code if you hit issues1 reply 0 retweets 0 likes -
Replying to @glenathan
@glenathan Babel has a retainLines option which keeps line numbers although it will make your code look like shit.@anatomic1 reply 0 retweets 0 likes -
Replying to @sebmck1 reply 0 retweets 0 likes
@glenathan npm prepublish hook that runs Babel is what most people use. @anatomic
-
-
Replying to @sebmck
@sebmck@glenathan that's how i'm doing it, the local dev link is a bit more convoluted with that approach. Best way I've seen though0 replies 0 retweets 0 likesThanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
he/him 