babel-relay-plugin-loader icon indicating copy to clipboard operation
babel-relay-plugin-loader copied to clipboard

The console.logs are causing syntax errors now with ES6

Open tobkle opened this issue 8 years ago • 3 comments

if (schema) {
    //console.log(`babel-relay-plugin-loader: using schema at [${schemaPath}]`);
    module.exports = getbabelRelayPlugin(schema.data);
} else {
   // console.log(`babel-relay-plugin-loader: no schema found at [${schemaPath}]`);
   // console.log('babel-relay-plugin-loader: babel will continue without the babel-relay-plugin!');
    module.exports = function () {
        return {
            visitor: {
            }
        };
    };
}

tobkle avatar May 14 '16 18:05 tobkle

@tobkle I am OK with removing the console logs all together if nobody has objections to it?

BerndWessels avatar May 16 '16 19:05 BerndWessels

Yes, I would recommend just removing them

kleneway avatar May 16 '16 21:05 kleneway

OK, I pushed and published 0.8.1-nologs for now and with the next version of babel-relay-plugin we should just continue without console logs and without the -nologs tag as normal.

BerndWessels avatar May 17 '16 20:05 BerndWessels