See this conversation for background: https://twitter.com/kentcdodds/status/958801650348539904
Things typically used in MobX projects
Should address for example #1328 (and many others)
I'll give it a shot
Well, that was fairly easy. Finishing up the README and I'll publish it in a few here
Looks like somebody already has a babel-preset-mobx, so I submitted a PR there instead :)
Does it even work?
https://github.com/zwhitchcox/babel-preset-mobx/blob/master/src/index.js#L3
looks
like a syntax error to me
Op wo 31 jan. 2018 om 23:14 schreef Bryan J. Ross <[email protected]
:
Looks like somebody already has a bable-preset-mobx, so I submitted a PR
there instead :)—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/mobxjs/mobx/issues/1331#issuecomment-362089100, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ABvGhK9U6ockyIr9CUSG4albN9849fR2ks5tQOXLgaJpZM4R0ngR
.
yeah, looks like that one is broken as it stands. While I'd like to use the babel-preset-mobx package name, if we don't get any movement on the PR from @zwhitchcox I'll go ahead and publish it under babel-preset-mobx-common. But I want to give it a little bit before doing that as it might be confusing down the line:
"Add babel-preset-mobx-common"
"ok" (adds npm i -D babel-preset-mobx)
..."nothing's working"
and so on
Much appreciation for the PR, pulled and published!
Awesome! Could you add a PR to the gh-pages @rossipedia ?
I'm also wondering, could React Native be served by the same package somehow? There is stuff like react-native-stage-0/decorator-support needed. Or is that no longer the case with babel-preset-mobx? (sry, babel is endlessly confusing for a TypeScript fanatic ;-))
Yeah I'll pop something in the gh-pages branch when I get a few minutes later today (unless somebody beats me to it)
maybe give scoped packages a try?
https://docs.npmjs.com/getting-started/scoped-packages
Updated the docs. Tnx for the preset @rossipedia / @zwhitchcox !