1
0
mirror of https://github.com/dwaxweiler/connector-mobilizon synced 2025-06-05 21:59:25 +02:00

add babel

This commit is contained in:
Daniel Waxweiler
2022-01-09 12:35:26 +01:00
parent 4270145a55
commit ec12889815
4 changed files with 3707 additions and 153 deletions

View File

@ -11,6 +11,20 @@ module.exports = {
filename: 'events-loader.js',
path: path.resolve(__dirname, 'build/' + '/front'),
},
module: {
rules: [
{
test: /\.m?js$/,
exclude: /node_modules/,
use: {
loader: 'babel-loader',
options: {
presets: [['@babel/preset-env', { targets: 'defaults' }]],
},
},
},
],
},
plugins: [
new CopyPlugin({
patterns: [