rules: [ { include: path.resolve(__dirname, "/src/index.js"), test: /\.js$/, exclude: /node_modules/, query: require("./babel.rc"), loader: "babel-loader" } ]