VUE CLI 3.0 to remove strict mode

 Will be reported at the time when use strict vue project development, citing some non-standard JS  Uncaught TypeError: 'Caller', 'callee', and 'arguments The' accessed the Properties May not BE ON strict or the MODE Functions at The arguments The Objects for Calls to Them

Option One: If you need to remove all use

npm i babel-plugin-transform-remove-strict-mode -D

However, the following configuration babel.config.js

 

Option Two: If you only need to exclude individual directories or js files are:

In the configuration babel.config.js

ignore: [
"Public / bower_components / ueditor / utf8-asp / *. Js" // exclude non-standard js file check
]

方案三:把文件移动这两个目录下/node_modules/* and /bower_components/*

Detailed analysis, see: https: //eslint.org/docs/user-guide/configuring#eslintignore

 

Guess you like

Origin www.cnblogs.com/Mr-lin66/p/11414252.html