I have a bug with a vue-cli project on iOS 9.
or follow the steps:
- create a bare new project with vue-cli.
- add one npm dependency like email-regex
browserslistto work in iOS 9 :
"iOS >= 9"
- add an
index.jswith an express server to serve the dist directory
Build and start the express server with
npm run build && node ./index.js.
On iOS 9 there is an error:
SyntaxError: Unexpected keyword 'const'. Const declarations are not supported in strict mode.
const keyword comes from the
email-regex lib wich is not tranformed by babel.