image-webpack-loader icon indicating copy to clipboard operation
image-webpack-loader copied to clipboard

webpack build err: Invalid shorthand property initializer

Open jane-rose opened this issue 6 years ago • 1 comments

my webpack.base.config.js is below: image when i build, webpack error is

ERROR in ./src/assets/img/thankyou/xxx Module build failed (from ./node_modules/image-webpack-loader/index.js): /var/lib/jenkins/workspace/static-snapmakerX/node_modules/imagemin/index.js:15 const handleFile = async (sourcePath, {destination, plugins = []}) => { ^^^^^^^^^^^^ SyntaxError: Invalid shorthand property initializer is anyone help me ? thx!

jane-rose avatar Feb 29 '20 14:02 jane-rose

my webpack version is 4.8.3, and babel7

jane-rose avatar Mar 01 '20 01:03 jane-rose