GithubHelp home page GithubHelp logo

webpack-config-github's Issues

Select default graphql endpoint more intelligently

I don't like how the current config needs to mutate the ENV vars in order have getGraphQLProjectConfig work as expected. It would be nice if you could pass something to getGraphQLProjectConfig as a fallback like getGraphQLProjectConfig('production'). Even better would be avoiding a hard coded naming requirement and selecting the first endpoint by default. Often there will only be one, no need for anyone to have to configure a name in that case.

// TODO: Investigate other ways set a default GRAPHQL_CONFIG_ENDPOINT_NAME
// for getGraphQLProjectConfig without mutating the environment.
if (!process.env['GRAPHQL_CONFIG_ENDPOINT_NAME']) {
process.env['GRAPHQL_CONFIG_ENDPOINT_NAME'] = 'production'
}

Relay Compiler inappropriately logs to stdout

Investigate RelayCompilerWebpackPlugin watchman flag

Settings watchman to true will crash unless the user has watchman installed. Not a great experience as watchman is an external dependency. Users may not have it installed or environments like production or CI systems won't either. If its truly required, it would be nice if it was an npm dependency. Not sure what the best way to integrate this is.

CC: @koddsson

Relay Compiler is invoked N times

On a simple example, Runner.compileAll is called at least twice.

https://github.com/danielholmes/relay-compiler-webpack-plugin/blob/19959b855b34ec6f0a0d6db27a3ae597b3286a88/src/index.js#L97-L105

Actual logged output.

$ cd examples/relay
$ webpack
Parsed default in 0.00s

Writing default
Writer time: 0.03s [0.03s compiling, 0.00s generating, 0.00s extra]
Unchanged: 0 files
Written default in 0.03s
Parsed default in 0.00s

Writing default
Writer time: 0.00s [0.00s compiling, 0.00s generating, 0.00s extra]
Unchanged: 0 files
Written default in 0.00s

CC: @koddsson

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.