const path = require('path'); module.exports = { entry: "./src/index.js", output: { globalObject: 'this', filename: "index.js", path: path.resolve(__dirname, "dist"), libraryTarget: "umd", library: "@grafnode/components" }, module: { rules: [ { test: /\.jsx?$/, exclude: /node_modules/, use: { loader: "babel-loader" } } ] }, externals: { 'react': 'react' } };