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