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.
- [Vuejs]-Electron-packager and electron-builder error build with electron-vue when put in file server
Source:stackexchange.com