Using babel-core@6.22.1, webpack@2.2.1, Node.js@v7.5.0 and this .babelrc file:
{
"presets": [
["latest", {
"es2015": {
"modules": false
}
}],
"stage-3",
"react"
],
"plugins": [
"babel-plugin-transform-class-properties",
"babel-plugin-transform-runtime",
"babel-gettext-extractor",
"./bin/babel-relay-schema-plugin"
]
}
After a quick googling, I went into my local node_modules/babel-gettext-extractor and changed this line from:
exports.default = function() {
to:
module.exports = function() {
And then it worked perfectly.
Is there a Babel config option I'm missing?