2022-08-28 14:31:20 +00:00
|
|
|
import webpack from 'webpack';
|
2022-12-27 15:56:59 +00:00
|
|
|
// import { BundleAnalyzerPlugin } from 'webpack-bundle-analyzer';
|
2022-08-28 14:31:20 +00:00
|
|
|
|
|
|
|
export default {
|
2022-12-27 15:56:59 +00:00
|
|
|
plugins: [
|
|
|
|
new webpack.ContextReplacementPlugin(/moment[\/\\]locale$/, /en/),
|
|
|
|
// new BundleAnalyzerPlugin(),
|
|
|
|
],
|
2023-06-02 14:35:31 +00:00
|
|
|
module: {
|
|
|
|
rules: [
|
|
|
|
{
|
|
|
|
test: /\.m?js$/,
|
|
|
|
exclude: /node_modules/,
|
|
|
|
use: {
|
|
|
|
loader: 'babel-loader',
|
|
|
|
options: {
|
2023-06-15 11:09:23 +00:00
|
|
|
presets: [['@babel/preset-env']],
|
2023-06-02 14:35:31 +00:00
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
2022-08-28 14:31:20 +00:00
|
|
|
};
|