"agora-extension-virtual-background": "^1.3.0",
"agora-rtc-sdk-ng": "4.22.2",
"agora-rtm-sdk": "1.4.4",
"element-ui": "^2.12.0",
"vue": "^2.5.2",
"url-loader": "^0.5.8",
"vue-loader": "^13.7.0",
"vue-style-loader": "^3.0.1",
"vue-template-compiler": "^2.5.2",
"webpack": "^3.6.0",
"webpack-bundle-analyzer": "^3.9.0",
"webpack-dev-server": "^2.9.1",
"webpack-merge": "^4.1.0"
发现agora-extension-virtual-background包的编译结果有问题
源码
let w, S; !function (A) { A.PREDICT_START = "PREDICT_START", A.PREDICT_END = "PREDICT_END", A.RENDER_END = "RENDER_END", A.PROCESSOR_DESTROY = "PROCESSOR_DESTROY" }(w || (w = {})), function (A) { A.PREDICT_START_RATE = "PREDICT_START_RATE", A.PREDICT_END_RATE = "PREDICT_END_RATE", A.RENDER_END_RATE = "RENDER_END_RATE", A.PREDICT_TIME = "PREDICT_TIME", A.RENDER_TIME = "RENDER_TIME", A.PERFORMANCE_WARNING = "PERFORMANCE_WARNING" }(S || (S = {}));
编译后的代码
let Q,y;(A=Q||(Q={})).PREDICTSTART="PREDICTSTART",A.PREDICTEND="PREDICTEND",A.RENDEREND="RENDEREND",A.PROCESSORDESTROY="PROCESSORDESTROY",function(A){A.PREDICTSTARTRATE="PREDICTSTARTRATE",A.PREDICTENDRATE="PREDICTENDRATE",A.RENDERENDRATE="RENDERENDRATE",A.PREDICTTIME="PREDICTTIME",A.RENDERTIME="RENDERTIME",A.PERFORMANCEWARNING="PERFORMANCEWARNING"}(y||(y={}))
发现var A=g(5124)被重新赋值
可能是我本地项目的配置问题,我想确认下agora-extension-virtual-background是否有什么特殊的地方