[Vuejs]-Project migration to Webpack2 errors

0👍

:: is a more recent ECMAScript feature. You need to use stage-0 for this. There is no need to remove transpilation with webpack 2. For the other JS errors, it seems like your presets doesn’t work. You can try doing this:

{
  test: /\.js$/,
  exclude: /node_modules/,
  loader: 'babel-loader',
  options: {
    babelrc: false,
    presets: [[{ "es2015": { "modules": false } }], "stage-0"]
  },
},

Note the babelrc: false, this will avoid loading the presets from a .babelrc file.

Leave a comment