mst-gql
mst-gql copied to clipboard
optimize final build
this came up in #225. At the moment we don't compress our bundle. There might also be other low hanging fruit we're missing around our build process so this issue covers looking at it and improving it where possible.
@mweststrate is there a reason we use --no-compress at the moment when building? I see it came in fairly early here: https://github.com/mobxjs/mst-gql/commit/56905674249676432330bb0e35ab082a58aad00d#diff-b9cfc7f2cdf78a7f4b91a753d10865a2 and I'm curious if there was something you had run into that necessitated that
I think that was just too make debugging easier in the example project
On Thu, 7 May 2020, 15:51 Chris Drackett, [email protected] wrote:
@mweststrate https://github.com/mweststrate is there a reason we use --no-compress at the moment when building? I see it came in fairly early here: 5690567#diff-b9cfc7f2cdf78a7f4b91a753d10865a2 https://github.com/mobxjs/mst-gql/commit/56905674249676432330bb0e35ab082a58aad00d#diff-b9cfc7f2cdf78a7f4b91a753d10865a2 and I'm curious if there was something you had run into that necessitated that
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/mobxjs/mst-gql/issues/226#issuecomment-625303502, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAN4NBFJ4ADEKU6T4CMI72LRQLDI5ANCNFSM4M3MQ3VA .
For the react-native field in package.json, we could also point to the source src/mst-gql.ts. My understanding is that metro supports compiling TypeScript and would make the debugging experience for the user better.
I strongly recommend against doing that in general. It is very likely to break if the typescript version or configuration differs from the hosting project. The node eco system is not designed for having untranspiled modules
On Fri, May 8, 2020 at 7:26 AM dpnolte [email protected] wrote:
For the react-native field in package.json, we could also point to the source src/mst-gql.ts. My understanding is that metro supports compiling TypeScript and would make the debugging experience for the user better.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/mobxjs/mst-gql/issues/226#issuecomment-625656846, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAN4NBA4ZIK6PENDXQWVBVDRQOQ2JANCNFSM4M3MQ3VA .
right, didn't realize that :) If anyone is picking this up, please disregard my comment above.