23 lines
509 B
JavaScript
23 lines
509 B
JavaScript
|
module.exports = {
|
||
|
mode: 'development',
|
||
|
entry: './src/index.js',
|
||
|
output: {
|
||
|
path: __dirname + '/dist',
|
||
|
filename: 'bundle.js',
|
||
|
},
|
||
|
module: {
|
||
|
rules: [
|
||
|
{
|
||
|
test: /\.js$/,
|
||
|
exclude: /node_modules/,
|
||
|
use: {
|
||
|
loader: 'babel-loader',
|
||
|
options: {
|
||
|
presets: ['@babel/preset-env'],
|
||
|
},
|
||
|
},
|
||
|
},
|
||
|
],
|
||
|
},
|
||
|
};
|