mirror of
https://github.com/MetinSeylan/Vue-Socket.io.git
synced 2025-04-16 15:21:28 +02:00
28 lines
No EOL
783 B
JavaScript
28 lines
No EOL
783 B
JavaScript
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"
|
|
]
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}; |