apollo-link-persisted-queries
apollo-link-persisted-queries copied to clipboard
Don't mix require with import statements, it breaks rollup bundling
Can you adjust this to not use CommonJS require mixed with ES6 imports? It is breaking rollup bundles since they can't handle files that use both.
https://github.com/apollographql/apollo-link-persisted-queries/blob/974edc3981570005d18ea455cc048f2a335c3b1b/src/index.ts#L2
bump
bump
This is probably the reason, I'm getting following warning:
WARNING in /opt/app/projects/website/src/app/providers/apollo.provider.ts depends on 'apollo-link-persisted-queries'. CommonJS or AMD dependencies can cause optimization bailouts.
Kindly fix it!
@benjamn could you take a look at https://github.com/apollographql/apollo-link-persisted-queries/pull/59 to fix this?