From c916f1904f264aec36216ff344d0088933a00dc0 Mon Sep 17 00:00:00 2001 From: fxy060608 Date: Fri, 9 Sep 2022 17:43:32 +0800 Subject: [PATCH] wip(uts): compiler --- package.json | 2 +- .../uni-app-plus/dist/uni-app-view.umd.js | 2 +- packages/uni-app-vite/src/utils.ts | 7 +++- packages/uni-automator/lib/uni.plugin.js | 2 +- packages/uni-automator/src/uni.plugin.ts | 4 +- packages/uni-cli-shared/src/platform.ts | 7 ++++ packages/uni-cli-shared/src/resolve.ts | 4 -- packages/uni-cli-shared/src/utils.ts | 8 +++- packages/uni-mp-kuaishou/dist/uni.api.esm.js | 14 ++++++- .../uni-uts-vite/src/utils/compiler/kotlin.ts | 24 ++++------- .../uni-uts-vite/src/utils/compiler/swift.ts | 14 ++++--- .../uni-uts-vite/src/utils/compiler/utils.ts | 17 ++++++++ .../uts-darwin-arm64/uts.darwin-arm64.node | Bin 5556552 -> 5556552 bytes packages/uts-darwin-x64/uts.darwin-x64.node | Bin 6148968 -> 6148968 bytes .../uts.win32-ia32-msvc.node | Bin 8709632 -> 8709120 bytes .../uts.win32-x64-msvc.node | Bin 7698944 -> 7702528 bytes packages/vite-plugin-uni/src/cli/utils.ts | 6 +-- packages/vite-plugin-uni/src/index.ts | 5 +-- packages/vite-plugin-uni/src/plugins/copy.ts | 15 ++++++- pnpm-lock.yaml | 38 +++++++++--------- 20 files changed, 104 insertions(+), 65 deletions(-) diff --git a/package.json b/package.json index c88996960..66a691430 100644 --- a/package.json +++ b/package.json @@ -86,7 +86,7 @@ "rollup-plugin-vue": "^6.0.0", "semver": "^7.3.5", "ts-jest": "^27.0.3", - "typescript": "4.8.2", + "typescript": "^4.8.3", "vite": "2.9.14", "vue": "3.2.39", "vue-router": "^4.1.5", diff --git a/packages/uni-app-plus/dist/uni-app-view.umd.js b/packages/uni-app-plus/dist/uni-app-view.umd.js index e800401a7..2dafc6474 100644 --- a/packages/uni-app-plus/dist/uni-app-view.umd.js +++ b/packages/uni-app-plus/dist/uni-app-view.umd.js @@ -1 +1 @@ -!function(e){"function"==typeof define&&define.amd?define(e):e()}((function(){"use strict";var e={exports:{}},t={exports:{}},n={exports:{}},r=n.exports={version:"2.6.12"};"number"==typeof __e&&(__e=r);var i={exports:{}};i.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),"number"==typeof __g&&(__g=window);var a=n.exports,o="__core-js_shared__",s=window[o]||(window[o]={});(t.exports=function(e,t){return s[e]||(s[e]=void 0!==t?t:{})})("versions",[]).push({version:a.version,mode:"window",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"});var l=0,u=Math.random(),c=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++l+u).toString(36))},d=t.exports("wks"),h=c,f=i.exports.Symbol,p="function"==typeof f;(e.exports=function(e){return d[e]||(d[e]=p&&f[e]||(p?f:h)("Symbol."+e))}).store=d;var v={},g=function(e){return"object"==typeof e?null!==e:"function"==typeof e},m=g,_=function(e){if(!m(e))throw TypeError(e+" is not an object!");return e},b=function(e){try{return!!e()}catch(t){return!0}},w=!b((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})),y=g,x=i.exports.document,S=y(x)&&y(x.createElement),k=function(e){return S?x.createElement(e):{}},T=!w&&!b((function(){return 7!=Object.defineProperty(k("div"),"a",{get:function(){return 7}}).a})),E=g,C=_,M=T,O=function(e,t){if(!E(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!E(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!E(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!E(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")},I=Object.defineProperty;v.f=w?Object.defineProperty:function(e,t,n){if(C(e),t=O(t,!0),C(n),M)try{return I(e,t,n)}catch(r){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e};var L=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},N=v,A=L,B=w?function(e,t,n){return N.f(e,t,A(1,n))}:function(e,t,n){return e[t]=n,e},R=e.exports("unscopables"),P=Array.prototype;null==P[R]&&B(P,R,{});var z={},D={}.toString,F=function(e){return D.call(e).slice(8,-1)},$=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},j=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==F(e)?e.split(""):Object(e)},V=$,W=function(e){return j(V(e))},U={exports:{}},H={}.hasOwnProperty,q=function(e,t){return H.call(e,t)},Y=t.exports("native-function-to-string",Function.toString),X=B,Z=q,G=c("src"),K=Y,J="toString",Q=(""+K).split(J);n.exports.inspectSource=function(e){return K.call(e)},(U.exports=function(e,t,n,r){var i="function"==typeof n;i&&(Z(n,"name")||X(n,"name",t)),e[t]!==n&&(i&&(Z(n,G)||X(n,G,e[t]?""+e[t]:Q.join(String(t)))),e===window?e[t]=n:r?e[t]?e[t]=n:X(e,t,n):(delete e[t],X(e,t,n)))})(Function.prototype,J,(function(){return"function"==typeof this&&this[G]||K.call(this)}));var ee=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e},te=ee,ne=n.exports,re=B,ie=U.exports,ae=function(e,t,n){if(te(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}},oe=function(e,t,n){var r,i,a,o,s=e&oe.F,l=e&oe.G,u=e&oe.S,c=e&oe.P,d=e&oe.B,h=l?window:u?window[t]||(window[t]={}):(window[t]||{}).prototype,f=l?ne:ne[t]||(ne[t]={}),p=f.prototype||(f.prototype={});for(r in l&&(n=t),n)a=((i=!s&&h&&void 0!==h[r])?h:n)[r],o=d&&i?ae(a,window):c&&"function"==typeof a?ae(Function.call,a):a,h&&ie(h,r,a,e&oe.U),f[r]!=a&&re(f,r,o),c&&p[r]!=a&&(p[r]=a)};window.core=ne,oe.F=1,oe.G=2,oe.S=4,oe.P=8,oe.B=16,oe.W=32,oe.U=64,oe.R=128;var se,le=oe,ue=Math.ceil,ce=Math.floor,de=function(e){return isNaN(e=+e)?0:(e>0?ce:ue)(e)},he=de,fe=Math.min,pe=de,ve=Math.max,ge=Math.min,me=W,_e=function(e){return e>0?fe(he(e),9007199254740991):0},be=function(e,t){return(e=pe(e))<0?ve(e+t,0):ge(e,t)},we=t.exports("keys"),ye=c,xe=function(e){return we[e]||(we[e]=ye(e))},Se=q,ke=W,Te=(se=!1,function(e,t,n){var r,i=me(e),a=_e(i.length),o=be(n,a);if(se&&t!=t){for(;a>o;)if((r=i[o++])!=r)return!0}else for(;a>o;o++)if((se||o in i)&&i[o]===t)return se||o||0;return!se&&-1}),Ee=xe("IE_PROTO"),Ce="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),Me=function(e,t){var n,r=ke(e),i=0,a=[];for(n in r)n!=Ee&&Se(r,n)&&a.push(n);for(;t.length>i;)Se(r,n=t[i++])&&(~Te(a,n)||a.push(n));return a},Oe=Ce,Ie=Object.keys||function(e){return Me(e,Oe)},Le=v,Ne=_,Ae=Ie,Be=w?Object.defineProperties:function(e,t){Ne(e);for(var n,r=Ae(t),i=r.length,a=0;i>a;)Le.f(e,n=r[a++],t[n]);return e},Re=i.exports.document,Pe=Re&&Re.documentElement,ze=_,De=Be,Fe=Ce,$e=xe("IE_PROTO"),je=function(){},Ve=function(){var e,t=k("iframe"),n=Fe.length;for(t.style.display="none",Pe.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("