Vue-cli,SyntaxError: Unexpected keyword 'const'.

browser version
Chrome browser Mac version, 67.0.3396.62 version

Vue version number
2.5.2

vue-baidu-map component library version number
0.21.10

description of the phenomenon
before the introduction of Baidu component vue-baidu-map, several mobile phones and pc on hand showed ok,

after the introduction of Baidu component vue-baidu-map, the display is normal on
mac chrome, debugged in
phone mode without error, normal on Huawei Glory android v5.1.1, normal on iOS 11 and above, and not displayed on all pages on iOS 9.3.5.
webpack-dev-server version number 2.9.1

complete exception information

const

SyntaxError: Unexpected keyword "const". Const declarations are not supported in strict mode.

Baidu has encountered the same situation because the webpack-dev-server plug-in does not parse the es6 syntax. The link is as follows:
https://github.com/mrdulin/bl.,
but after downgrading webpack-dev-server according to their solution, the problem remains unsolved.
how do I modify the configuration?


if you see which file has reported an error, use babel-loader include to translate that file to


webpack to remove exclude: / node_modules/.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b31c08-4d45a.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b31c08-4d45a.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?