Not sure how fragile this is, but looks interesting: https://github.com/developit/modify-babel-preset …. Example: https://github.com/bkonkle/babel-preset-es2015-loose/blob/master/index.js …
-
-
-
Replying to @dan_abramov
@dan_abramov this relies on reference equality between plugin instances and we could easily break this1 reply 0 retweets 2 likes -
Replying to @dan_abramov
@dan_abramov either break it on accident or on purpose ;)1 reply 0 retweets 0 likes -
Replying to @sebmck
@sebmck@dan_abramov could the preset extension mechanisms find a home in core?1 reply 0 retweets 0 likes -
Replying to @iamdustan
@iamdustan@dan_abramov no, it completely goes against the idea of presets and brings us back to terrible babel 5 transformer toggles1 reply 0 retweets 2 likes -
Replying to @sebmck
@sebmck@iamdustan What is a good way to tweak some options for my lib? Is publishing my own preset on NPM the only way?2 replies 0 retweets 0 likes
@dan_abramov @iamdustan copy+paste the preset. the plugins a preset uses should be unobservable.
-
-
Replying to @sebmck
@sebmck@dan_abramov@iamdustan you could write a Babel plugin to transform the source code of original preset to add options? :p0 replies 0 retweets 1 likeThanks. 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 