Skip to content
This repository has been archived by the owner on Apr 30, 2021. It is now read-only.

Pathgather/babel-relay-plugin-wrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

babel-relay-plugin-wrapper

https://facebook.github.io/relay/docs/guides-babel-plugin.html#content

When using Babel with Webpack, you have to specify Babel plugins as a string, e.g, loader: babel?plugins[]=my-plugin, which doesn't allow you to pass any configuration to them. babel-relay-plugin requires a schema file to be passed, so what this does is tries to find schema.json by looking at the project's package.json and uses it to configure babel-relay-plugin.

Usage

In your webpack.config.js:

  module: {
    loaders: [
      { test: /\.js$/, loader: 'babel-loader?plugins[]=babel-relay-plugin-wrapper' }
    ]
  }

About

Helper to use Relay plugin with Webpack and Babel

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published