apollo-server/packages/apollo-graphql
Jesse Rosenberger 21c274870f
Use lodash.sortby modularly, rather than all of lodash.
Currently, the only place that we use `lodash` in the entire `apollo-server`
repository is to utilize the `sortBy` function in this signature generation.

Looking at the bundle stats, it appears that lodash represents 7.1% of the
`apollo-server` package.  We're a server, so bundle size is generally less
of a concern, but it's still not to be ignored, particularly as we move into
worker environments.  More pressingly though, since this package will be
utilized by the `apollo` CLI, we'll be shaving precious download time off
the invocation of `npx apollo` if we can get this down.

By switching to the modular package (but still depending on `@types/lodash`
for _just_ the `ListIteratee` type — which we only need in development — we
should be able to trim 55.4kB minified (19.1kB minified+gzip'd) off the
`apollo-server` build.

cc @trevor-scheer @jbaxleyiii @martijnwalraven
2019-02-01 20:40:14 +02:00
..
src Use lodash.sortby modularly, rather than all of lodash. 2019-02-01 20:40:14 +02:00
.npmignore Setup the foundation for a new apollo-graphql utility library. 2019-02-01 18:20:59 +02:00
CHANGELOG.md Setup the foundation for a new apollo-graphql utility library. 2019-02-01 18:20:59 +02:00
jest.config.js Setup the foundation for a new apollo-graphql utility library. 2019-02-01 18:20:59 +02:00
package.json Use lodash.sortby modularly, rather than all of lodash. 2019-02-01 20:40:14 +02:00
README.md Setup the foundation for a new apollo-graphql utility library. 2019-02-01 18:20:59 +02:00
tsconfig.json Setup the foundation for a new apollo-graphql utility library. 2019-02-01 18:20:59 +02:00

apollo-graphql