I use webpack to build.
all works fine, but I get an error in production build of the locales:
js/ar.js from UglifyJs
SyntaxError: Unexpected token: operator (>) [./~/vee-validate/dist/locale/ar.js:
2,0][js/ar.js:85,30]
Is there a custom loader do convert that syntax, or is it a bug from UglifyJs?
It is because the locales are in es6 so uglify won't be able to properly handle them, until I Figure a good way to bundle them, you are going to have to download the locales you need and copy them to your project source, and allow babel-loader to process them.
import ar from './strings/validations/ar';
because they are in node_modules, babel-loader typically doesn't process them because of the exclude option.
Most helpful comment
It is because the locales are in es6 so uglify won't be able to properly handle them, until I Figure a good way to bundle them, you are going to have to download the locales you need and copy them to your project source, and allow babel-loader to process them.
because they are in node_modules, babel-loader typically doesn't process them because of the
excludeoption.