Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

babel relay plugin configuration for es6 #841

Closed
rares-lupascu opened this issue Feb 15, 2016 · 4 comments
Closed

babel relay plugin configuration for es6 #841

rares-lupascu opened this issue Feb 15, 2016 · 4 comments

Comments

@rares-lupascu
Copy link

Hi

I am doing a test app that is all es6 ... and i hit a bump when using this plugin ... the docs say to use this to configure the plugin and it works:

var getBabelRelayPlugin = require('babel-relay-plugin');
var schemaData = require('../data/schema.json').data;
module.exports = getBabelRelayPlugin(schemaData, {
  abortOnError: true
});

can anyone tell me why this syntax does not work?

"use strict";

import getBabelRelayPlugin from 'babel-relay-plugin';
import schemaData from '../data/schema.json';

export default getBabelRelayPlugin(schemaData.data, {
  abortOnError: true
});

thanks,
rarutu

@josephsavona
Copy link
Contributor

Thanks for your question! We want to make sure to keep signal strong in the GitHub issue tracker – to make sure that it remains the best place to track issues that affect the development of Relay.

Questions like yours deserve a purpose-built Q&A forum. Would you like to post this question to Stack Overflow with the tag #relayjs? We'll be happy to answer there. Post a link to your Stack Overflow question here, to so that we don't lose track of it.

https://stackoverflow.com/questions/ask?tags=relayjs

@rares-lupascu
Copy link
Author

@rares-lupascu
Copy link
Author

can u please confirm the answer on the stackoverflow question ... is the answer from there correct?

@josephsavona
Copy link
Contributor

@rarutu I commented at Stack Overflow, let's move discussion there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants