You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
module.exports = {
|
|
entry: './js/index.js',
|
|
output: {
|
|
filename: 'dist/bundle.js'
|
|
},
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: /\.(js|jsx)$/, //for all files that end with js/jsx
|
|
use: {
|
|
loader: 'babel-loader', //use the babel loader to load:
|
|
options: {
|
|
presets: ["es2015", "react"]
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
};
|