Xiaobai asks a question about the future code of pakage.json and build.

according to the online said pakage.json dependencies and devDependencies, the former needs to be deployed to the formal environment, the latter is to compile the local code, in my code babel related are in devDependencies, that is to say, bild process babel to static in the es6 syntax compiled into es5 syntax can, but I npm run build in the dist folder to see me write in the es6 syntax in static, and not compiled into es5 syntax,
excuse me some of the principles in the middle of what is.
the dependencies and devDependencies found on the Internet are basically environmental differences

.babelrc file
{
"presets": [

["env", {
  "modules": false,
  "targets": {
    "browsers": ["> 1%", "last 2 versions", "not ie <= 8"]
  }
}],
"stage-2"

],
"plugins": ["transform-runtime"],
"env": {

"test": {
  "presets": ["env", "stage-2"],
  "plugins": ["istanbul"]
}

}
}

Apr.09,2021

look at your babel configuration. If all browsers support ES6 in your babel configuration, those will be retained

in addition

but after I npm run build, I read the es6 syntax I wrote in static in the dist folder

which part of this grammar needs to be specified, it may be translated.

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-1b3b2bb-2bac5.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-1b3b2bb-2bac5.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?