Why vue uses with statements that are not supported in es5 strict mode

two functions in the source code

function() {
    with(this){return _c("div")}
}

Vue.prototype._c , just to omit this , isn"t there a performance problem with with , and strict mode is not supported.

Feb.27,2021

first of all, the writing of the source code can still be executed normally in strict mode, and then there is official explanation :

  • to reduce compiler code size and complexity
  • provides vue-loader as a way to compile template into render
  • through a build tool.
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-1b32933-2be30.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-1b32933-2be30.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?