Skip to content
This repository has been archived by the owner on Aug 13, 2020. It is now read-only.

webpack minified bundle #7

Closed
wants to merge 1 commit into from
Closed

webpack minified bundle #7

wants to merge 1 commit into from

Conversation

cdetrio
Copy link

@cdetrio cdetrio commented May 5, 2017

I wanted to use apollo-local-query as a dependency from create-react-app, but since apollo-local-query exports ES6 code, npm run build runs into this error: facebook/create-react-app#984. So I repackaged apollo-local-query based on react-webpack-starter, to export a transpiled minified bundle file.

Now npm run build works, see it deployed: http://cdetrio.github.io/apollo-graphiql/.

@af
Copy link
Owner

af commented May 6, 2017

I'm not sure I understand the use case here- why would you need this module client-side?

@cdetrio
Copy link
Author

cdetrio commented May 6, 2017

The use case I have in mind is experimenting with custom resolvers or graphql adapters to back-end data sources, e.g. a client-side REST wrapper.

Btw, webpack complained about the debug module so its commented out.

@af
Copy link
Owner

af commented May 6, 2017

Ok, makes sense. This is a pretty small module, focused on server-side applications, so I don't think this PR fits the direction of the project. However please keep your branch up on github; I'm sure it'll be a useful reference for anyone who is trying to build something similar.

@af af closed this May 6, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants