apollo icon indicating copy to clipboard operation
apollo copied to clipboard

Can we import gql dynamically to reduce bundle size?

Open reinoldus opened this issue 4 years ago • 0 comments

Is your feature request related to a problem? Please describe. Smaller bundle size

Describe the solution you'd like A clear and concise description of what you want to happen.

I would like to replace the import import gql from 'graphql-tag' with a dynamic import in order to load it on demand.

The main reason is: Import graphql-tag adds 33kb to the bundle size. I personally do not even use this features and I assume quite a few others.

Describe alternatives you've considered None

reinoldus avatar May 13 '21 15:05 reinoldus