module.exports = {
    entry: [
        ${1:'./app/main.js'}
    ],
    output: {
        path: __dirname + '/dist',
        filename: "app.bundle.js"
    },
    module: {
        loaders: [
            { test: /\.js$/, include: __dirname + '/app', loader: 'babel-loader' }$0
        ]
    }
    // plugins: []
};
module.exports = {
    entry: [
        ${1:'./app/main.js'}
    ],
    output: {
        path: __dirname + '/dist',
        filename: "app.bundle.js"
    },
    module: {
        rules: [
            {
              test: /\.js$/,
              exclude: /node_modules/,
              use: {
                  loader: "babel-loader"
              }
            }
        ]
  },
    // plugins: []
};

Update webpack file template for latest version
Update webpack file template for latest version

Webpack 4 has some syntax changes, mainly using rules key instead of plugin.