12345678910111213141516171819202122232425262728 |
- module.exports = {
- mode: process.env.NODE_ENV,
- entry: ["./src/index.js"],
- output: {
- library: "VueSocketIO",
- libraryTarget: "umd",
- libraryExport: "default",
- filename: "vue-socketio.js",
- globalObject: "typeof self !== 'undefined' ? self : this"
- },
- module: {
- rules: [
- {
- test: /\.js$/,
- exclude: /node_modules/,
- use: {
- loader: "babel-loader",
- options: {
- plugins: [
- "@babel/plugin-proposal-class-properties",
- "@babel/plugin-transform-classes"
- ]
- }
- }
- }
- ]
- }
- };
|