Giter Club home page Giter Club logo

relay-compiler-webpack-plugin's People

Contributors

ch1ffa avatar chillu avatar lucaspickering avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

steinybot

relay-compiler-webpack-plugin's Issues

Warnings cause compilation errors

Some warnings or other informative messages go to stderr. For example:

Debugger listening on ws://127.0.0.1:56587/f01b9c7c-094d-4757-a650-020f63e40d9c
For help, see: https://nodejs.org/en/docs/inspector
Debugger attached.
(node:54655) ExperimentalWarning: Custom ESM Loaders is an experimental feature. This feature could change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
(node:54655) ExperimentalWarning: The Node.js specifier resolution flag is experimental. It could change or be removed at any time.
Waiting for the debugger to disconnect...

These are copied to errorMessages in https://github.com/ch1ffa/relay-compiler-webpack-plugin/blob/main/src/compiler.ts#L38 and subsequently converted to compilationErrors in https://github.com/ch1ffa/relay-compiler-webpack-plugin/blob/main/src/plugin.ts#L58.

I think the best thing to do is to check the exit code before determining whether the messages should be errors or not.

Replacing relay-tools/relay-compiler-webpack-plugin

Thanks for putting this together @ch1ffa - much appreciated.

Have you thought about taking over the version a relay-tools - so that everyone who was previously using the compiler can find it.

Or alternatively - since that version is abandoned, asking for a link in their readme to your version?

syntax error when trying to import this in my webpack config

Hi, maybe this code requires some newer version of node or something (I'm still on Node 10), but I can't use this plugin when I used to be able to use the old plugin.

/code/node_modules/@ch1ffa/relay-compiler-webpack-plugin/dist/index.js:47
  subprocess;
            ^

SyntaxError: Unexpected token ;

Does this require a newer version of Node or something? I've never seen that syntax.

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.