UNPKG

communication-bus

Version:

Publisher subscriber library for communication in JS across components

41 lines (32 loc) 702 B
const path = require("path"); const fs = require("fs"); const config = {}; config.mode = "production"; config.entry = { app: "./src/index.js" }; config.output = { path: path.resolve(__dirname, "lib"), filename: "bundle.js", library: "MT_PubSub", libraryExport: "default", libraryTarget: "umd", umdNamedDefine: true }; config.stats = "normal"; config.devtool = "inline-source-map"; config.module = { rules: [ { test: /\.js$/, exclude: /(node_modules|bower_components)/, use: { loader: "babel-loader", options: JSON.parse( fs.readFileSync(path.resolve(__dirname, ".babelrc")) ) } } ] }; module.exports = config;