Closed dustinfarris closed 7 years ago
the naive approach would basically be a cut n paste of both of those functions & deps + string constraints. it'll basically be the entire /language folder of graphql.
the smarter way would be to build cashay via webpack & perform tree shaking there. that way, the cashay bundle would only include the pieces of graphql that it needed. you could output 2 files (commonjs/umd) if needed. http://www.2ality.com/2015/12/webpack-tree-shaking.html
ok, using webpack now (just for cashay/graphql) — thanks for the link
Leaving this as a placeholder. I plan on attempting this eventually, if no one does it first.