2023-01-26 00:55:34 +00:00
|
|
|
const path = require("path");
|
2023-01-30 00:59:45 +00:00
|
|
|
|
2023-01-26 00:55:34 +00:00
|
|
|
module.exports = {
|
2023-01-30 00:59:45 +00:00
|
|
|
entry: "./src/index.js",
|
|
|
|
|
|
|
|
output: {
|
|
|
|
filename: 'main.js',
|
|
|
|
path: path.resolve(__dirname, 'dist'),
|
|
|
|
},
|
|
|
|
|
|
|
|
module: {
|
|
|
|
rules: [
|
|
|
|
{
|
|
|
|
test: /\.m?js$/,
|
|
|
|
exclude: /node_modules/,
|
|
|
|
use: {
|
|
|
|
loader: 'babel-loader',
|
|
|
|
options: {
|
|
|
|
presets: [
|
|
|
|
[
|
|
|
|
'@babel/preset-env'
|
|
|
|
]
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
|
|
|
|
mode: "production"
|
2023-01-26 16:31:07 +00:00
|
|
|
}
|