Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
DCloud
uni-app
提交
13961ec4
U
uni-app
项目概览
DCloud
/
uni-app
3 个月 前同步成功
通知
725
Star
38705
Fork
3642
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
7
列表
看板
标记
里程碑
合并请求
1
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
U
uni-app
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
7
Issue
7
列表
看板
标记
里程碑
合并请求
1
合并请求
1
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
13961ec4
编写于
10月 31, 2021
作者:
fxy060608
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
build(deps): bump vite from 2.6.11 to 2.6.13
上级
e25ca33e
变更
12
展开全部
显示空白变更内容
内联
并排
Showing
12 changed file
with
1826 addition
and
1411 deletion
+1826
-1411
package.json
package.json
+1
-1
packages/playground/ssr/package.json
packages/playground/ssr/package.json
+1
-1
packages/playground/ssr/yarn.lock
packages/playground/ssr/yarn.lock
+113
-113
packages/uni-app-plus/dist/uni-app-view.umd.js
packages/uni-app-plus/dist/uni-app-view.umd.js
+3
-3
packages/uni-app-vue/dist/service.runtime.esm.dev.js
packages/uni-app-vue/dist/service.runtime.esm.dev.js
+456
-260
packages/uni-app-vue/dist/service.runtime.esm.prod.js
packages/uni-app-vue/dist/service.runtime.esm.prod.js
+402
-237
packages/uni-cli-shared/src/postcss/plugins/uniapp.ts
packages/uni-cli-shared/src/postcss/plugins/uniapp.ts
+64
-22
packages/uni-cli-shared/src/vite/plugins/vitejs/plugins/css.ts
...ges/uni-cli-shared/src/vite/plugins/vitejs/plugins/css.ts
+1
-1
packages/uni-mp-compiler/__tests__/slot.spec.ts
packages/uni-mp-compiler/__tests__/slot.spec.ts
+9
-0
packages/uni-mp-compiler/__tests__/transformElement.spec.ts
packages/uni-mp-compiler/__tests__/transformElement.spec.ts
+5
-2
packages/uni-mp-compiler/src/transform.ts
packages/uni-mp-compiler/src/transform.ts
+4
-12
yarn.lock
yarn.lock
+767
-759
未找到文件。
package.json
浏览文件 @
13961ec4
...
@@ -96,7 +96,7 @@
...
@@ -96,7 +96,7 @@
"
semver
"
:
"
^7.3.4
"
,
"
semver
"
:
"
^7.3.4
"
,
"
ts-jest
"
:
"
^27.0.3
"
,
"
ts-jest
"
:
"
^27.0.3
"
,
"
typescript
"
:
"
^4.4.3
"
,
"
typescript
"
:
"
^4.4.3
"
,
"
vite
"
:
"
^2.6.1
1
"
,
"
vite
"
:
"
^2.6.1
3
"
,
"
vue
"
:
"
^3.2.20
"
,
"
vue
"
:
"
^3.2.20
"
,
"
yorkie
"
:
"
^2.0.0
"
"
yorkie
"
:
"
^2.0.0
"
},
},
...
...
packages/playground/ssr/package.json
浏览文件 @
13961ec4
...
@@ -32,6 +32,6 @@
...
@@ -32,6 +32,6 @@
"compression"
:
"^1.7.4"
,
"compression"
:
"^1.7.4"
,
"cypress"
:
"^7.3.0"
,
"cypress"
:
"^7.3.0"
,
"serve-static"
:
"^1.14.1"
,
"serve-static"
:
"^1.14.1"
,
"vite"
:
"^2.6.1
1
"
"vite"
:
"^2.6.1
3
"
}
}
}
}
packages/playground/ssr/yarn.lock
浏览文件 @
13961ec4
...
@@ -2,22 +2,22 @@
...
@@ -2,22 +2,22 @@
# yarn lockfile v1
# yarn lockfile v1
"@babel/helper-validator-identifier@^7.1
4.9
":
"@babel/helper-validator-identifier@^7.1
5.7
":
version "7.15.7"
version "7.15.7"
resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.15.7.tgz#220df993bfe904a4a6b02ab4f3385a5ebf6e2389"
resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.15.7.tgz#220df993bfe904a4a6b02ab4f3385a5ebf6e2389"
integrity sha512-K4JvCtQqad9OY2+yTU8w+E82ywk/fe+ELNlt1G8z3bVGlZfn/hOcQQsUhGhW/N+tb3fxK800wLtKOE/aM0m72w==
integrity sha512-K4JvCtQqad9OY2+yTU8w+E82ywk/fe+ELNlt1G8z3bVGlZfn/hOcQQsUhGhW/N+tb3fxK800wLtKOE/aM0m72w==
"@babel/parser@^7.15.0":
"@babel/parser@^7.15.0":
version "7.1
5.8
"
version "7.1
6.0
"
resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.1
5.8.tgz#7bacdcbe71bdc3ff936d510c15dcea7cf0b99016
"
resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.1
6.0.tgz#cf147d7ada0a3655e79bf4b08ee846f00a00a295
"
integrity sha512-
BRYa3wcQnjS/nqI8Ac94pYYpJfojHVvVXJ97+IDCImX4Jc8W8Xv1+47enbruk+q1etOpsQNwnfFcNGw+gtPGx
A==
integrity sha512-
TEHWXf0xxpi9wKVyBCmRcSSDjbJ/cl6LUdlbYUHEaNQUJGhreJbZrXT6sR4+fZLxVUJqNRB4KyOvjuy/D9009
A==
"@babel/types@^7.15.0":
"@babel/types@^7.15.0":
version "7.1
5.6
"
version "7.1
6.0
"
resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.1
5.6.tgz#99abdc48218b2881c058dd0a7ab05b99c9be758f
"
resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.1
6.0.tgz#db3b313804f96aadd0b776c4823e127ad67289ba
"
integrity sha512-
BPU+7QhqNjmWyDO0/vitH/CuhpV8ZmK1wpKva8nuyNF5MJfuRNWMc+hc14+u9xT93kvykMdncrJT19h74uB1I
g==
integrity sha512-
PJgg/k3SdLsGb3hhisFvtLOw5ts113klrpLuIPtCJIU+BB24fqq6lf8RWqKJEjzqXR9AEH1rIb5XTqwBHB+kQ
g==
dependencies:
dependencies:
"@babel/helper-validator-identifier" "^7.1
4.9
"
"@babel/helper-validator-identifier" "^7.1
5.7
"
to-fast-properties "^2.0.0"
to-fast-properties "^2.0.0"
"@cypress/request@^2.88.5":
"@cypress/request@^2.88.5":
...
@@ -826,113 +826,113 @@ es-module-lexer@^0.9.3:
...
@@ -826,113 +826,113 @@ es-module-lexer@^0.9.3:
resolved "https://registry.yarnpkg.com/es-module-lexer/-/es-module-lexer-0.9.3.tgz#6f13db00cc38417137daf74366f535c8eb438f19"
resolved "https://registry.yarnpkg.com/es-module-lexer/-/es-module-lexer-0.9.3.tgz#6f13db00cc38417137daf74366f535c8eb438f19"
integrity sha512-1HQ2M2sPtxwnvOvT1ZClHyQDiggdNjURWpY2we6aMKCQiUVxTmVs2UYPLIrD84sS+kMdUwfBSylbJPwNnBrnHQ==
integrity sha512-1HQ2M2sPtxwnvOvT1ZClHyQDiggdNjURWpY2we6aMKCQiUVxTmVs2UYPLIrD84sS+kMdUwfBSylbJPwNnBrnHQ==
esbuild-android-arm64@0.13.1
0
:
esbuild-android-arm64@0.13.1
2
:
version "0.13.1
0
"
version "0.13.1
2
"
resolved "https://registry.yarnpkg.com/esbuild-android-arm64/-/esbuild-android-arm64-0.13.1
0.tgz#3545c71bf01e8b36535681078cdb0191c8654452
"
resolved "https://registry.yarnpkg.com/esbuild-android-arm64/-/esbuild-android-arm64-0.13.1
2.tgz#e1f199dc05405cdc6670c00fb6c793822bf8ae4c
"
integrity sha512-
1sCdVAq64yMp2Uhlu+97/enFxpmrj31QHtThz7K+/QGjbHa7JZdBdBsZCzWJuntKHZ+EU178tHYkvjaI9z5sGg
==
integrity sha512-
TSVZVrb4EIXz6KaYjXfTzPyyRpXV5zgYIADXtQsIenjZ78myvDGaPi11o4ZSaHIwFHsuwkB6ne5SZRBwAQ7maw
==
esbuild-darwin-64@0.13.1
0
:
esbuild-darwin-64@0.13.1
2
:
version "0.13.1
0
"
version "0.13.1
2
"
resolved "https://registry.yarnpkg.com/esbuild-darwin-64/-/esbuild-darwin-64-0.13.1
0.tgz#143e34d7f5d3860cc681c64c860f531e60496b5b
"
resolved "https://registry.yarnpkg.com/esbuild-darwin-64/-/esbuild-darwin-64-0.13.1
2.tgz#f5c59e622955c01f050e5a7ac9c1d41db714b94d
"
integrity sha512-
XlL+BYZ2h9cz3opHfFgSHGA+iy/mljBFIRU9q++f9SiBXEZTb4gTW/IENAD1l9oKH0FdO9rUpyAfV+lM4uAxrg
==
integrity sha512-
c51C+N+UHySoV2lgfWSwwmlnLnL0JWj/LzuZt9Ltk9ub1s2Y8cr6SQV5W3mqVH1egUceew6KZ8GyI4nwu+fhsw
==
esbuild-darwin-arm64@0.13.1
0
:
esbuild-darwin-arm64@0.13.1
2
:
version "0.13.1
0
"
version "0.13.1
2
"
resolved "https://registry.yarnpkg.com/esbuild-darwin-arm64/-/esbuild-darwin-arm64-0.13.1
0.tgz#456a044b789d5d256af8d264314da5217ca9fcd1
"
resolved "https://registry.yarnpkg.com/esbuild-darwin-arm64/-/esbuild-darwin-arm64-0.13.1
2.tgz#8abae74c2956a8aa568fc52c78829338c4a4b988
"
integrity sha512-
RZMMqMTyActMrXKkW71IQO8B0tyQm0Bm+ZJQWNaHJchL5LlqazJi7rriwSocP+sKLszHhsyTEBBh6qPdw5g5y
Q==
integrity sha512-
JvAMtshP45Hd8A8wOzjkY1xAnTKTYuP/QUaKp5eUQGX+76GIie3fCdUUr2ZEKdvpSImNqxiZSIMziEiGB5oUm
Q==
esbuild-freebsd-64@0.13.1
0
:
esbuild-freebsd-64@0.13.1
2
:
version "0.13.1
0
"
version "0.13.1
2
"
resolved "https://registry.yarnpkg.com/esbuild-freebsd-64/-/esbuild-freebsd-64-0.13.1
0.tgz#dcd829a4a95226716faae8a2f378f08688f921b6
"
resolved "https://registry.yarnpkg.com/esbuild-freebsd-64/-/esbuild-freebsd-64-0.13.1
2.tgz#6ad2ab8c0364ee7dd2d6e324d876a8e60ae75d12
"
integrity sha512-
pf4BEN9reF3jvZEZdxljVgOv5JS4kuYFCI78xk+2HWustbLvTP0b9XXfWI/OD0ZLWbyLYZYIA+VbVe4tdAklig
==
integrity sha512-
r6On/Skv9f0ZjTu6PW5o7pdXr8aOgtFOEURJZYf1XAJs0IQ+gW+o1DzXjVkIoT+n1cm3N/t1KRJfX71MPg/ZUA
==
esbuild-freebsd-arm64@0.13.1
0
:
esbuild-freebsd-arm64@0.13.1
2
:
version "0.13.1
0
"
version "0.13.1
2
"
resolved "https://registry.yarnpkg.com/esbuild-freebsd-arm64/-/esbuild-freebsd-arm64-0.13.1
0.tgz#116c254b3eb1b9d1dd6f12e0271967de4512ca09
"
resolved "https://registry.yarnpkg.com/esbuild-freebsd-arm64/-/esbuild-freebsd-arm64-0.13.1
2.tgz#6f38155f4c300ac4c8adde1fde3cc6a4440a8294
"
integrity sha512-
j9PUcuNWmlxr4/ry4dK/s6zKh42Jhh/N5qnAAj7tx3gMbkIHW0JBoVSbbgp97p88X9xgKbXx4lG2sJDhDWmsYQ
==
integrity sha512-
F6LmI2Q1gii073kmBE3NOTt/6zLL5zvZsxNLF8PMAwdHc+iBhD1vzfI8uQZMJA1IgXa3ocr3L3DJH9fLGXy6Yw
==
esbuild-linux-32@0.13.1
0
:
esbuild-linux-32@0.13.1
2
:
version "0.13.1
0
"
version "0.13.1
2
"
resolved "https://registry.yarnpkg.com/esbuild-linux-32/-/esbuild-linux-32-0.13.1
0.tgz#131971622c38e5aa014303a494a1b5c3cc90f2be
"
resolved "https://registry.yarnpkg.com/esbuild-linux-32/-/esbuild-linux-32-0.13.1
2.tgz#b1d15e330188a8c21de75c3f0058628a3eefade7
"
integrity sha512-
imtdHG5ru0xUUXuc2ofdtyw0fWlHYXV7JjF7oZHgmn0b+B4o4Nr6ZON3xxoo1IP8wIekW+7b9exIf/MYq0QV7w
==
integrity sha512-
U1UZwG3UIwF7/V4tCVAo/nkBV9ag5KJiJTt+gaCmLVWH3bPLX7y+fNlhIWZy8raTMnXhMKfaTvWZ9TtmXzvkuQ
==
esbuild-linux-64@0.13.1
0
:
esbuild-linux-64@0.13.1
2
:
version "0.13.1
0
"
version "0.13.1
2
"
resolved "https://registry.yarnpkg.com/esbuild-linux-64/-/esbuild-linux-64-0.13.1
0.tgz#48826c388abd5dde3fc098a8ef38d8b548674f93
"
resolved "https://registry.yarnpkg.com/esbuild-linux-64/-/esbuild-linux-64-0.13.1
2.tgz#25bd64b66162b02348e32d8f12e4c9ee61f1d070
"
integrity sha512-
O7fzQIH2e7GC98dvoTH0rad5BVLm9yU3cRWfEmryCEIFTwbNEWCEWOfsePuoGOHRtSwoVY1hPc21CJE4/9rWx
Q==
integrity sha512-
YpXSwtu2NxN3N4ifJxEdsgd6Q5d8LYqskrAwjmoCT6yQnEHJSF5uWcxv783HWN7lnGpJi9KUtDvYsnMdyGw71
Q==
esbuild-linux-arm64@0.13.1
0
:
esbuild-linux-arm64@0.13.1
2
:
version "0.13.1
0
"
version "0.13.1
2
"
resolved "https://registry.yarnpkg.com/esbuild-linux-arm64/-/esbuild-linux-arm64-0.13.1
0.tgz#0be9ffc92e30641869c7fbca0ec5d30fa8cbddd6
"
resolved "https://registry.yarnpkg.com/esbuild-linux-arm64/-/esbuild-linux-arm64-0.13.1
2.tgz#ba582298457cc5c9ac823a275de117620c06537f
"
integrity sha512-
bkGxN67S2n0PF4zhh87/92kBTsH2xXLuH6T5omReKhpXdJZF5SVDSk5XU/nngARzE+e6QK6isK060Dr5uobzNw
==
integrity sha512-
sgDNb8kb3BVodtAlcFGgwk+43KFCYjnFOaOfJibXnnIojNWuJHpL6aQJ4mumzNWw8Rt1xEtDQyuGK9f+Y24jGA
==
esbuild-linux-arm@0.13.1
0
:
esbuild-linux-arm@0.13.1
2
:
version "0.13.1
0
"
version "0.13.1
2
"
resolved "https://registry.yarnpkg.com/esbuild-linux-arm/-/esbuild-linux-arm-0.13.1
0.tgz#8c15bcaa41a022c834f049a71a7d1fbade507532
"
resolved "https://registry.yarnpkg.com/esbuild-linux-arm/-/esbuild-linux-arm-0.13.1
2.tgz#6bc81c957bff22725688cc6359c29a25765be09b
"
integrity sha512-
R2Jij4A0K8BcmBehvQeUteQEcf24Y2YZ6mizlNFuJOBPxe3vZNmkZ4mCE7Pf1tbcqA65qZx8J3WSHeGJl9EsJA
==
integrity sha512-
SyiT/JKxU6J+DY2qUiSLZJqCAftIt3uoGejZ0HDnUM2MGJqEGSGh7p1ecVL2gna3PxS4P+j6WAehCwgkBPXNIw
==
esbuild-linux-mips64le@0.13.1
0
:
esbuild-linux-mips64le@0.13.1
2
:
version "0.13.1
0
"
version "0.13.1
2
"
resolved "https://registry.yarnpkg.com/esbuild-linux-mips64le/-/esbuild-linux-mips64le-0.13.1
0.tgz#5bb33a2bc82e9c78ed724f345a8359610ddc9695
"
resolved "https://registry.yarnpkg.com/esbuild-linux-mips64le/-/esbuild-linux-mips64le-0.13.1
2.tgz#ef3c4aba3e585d847cbade5945a8b4a5c62c7ce2
"
integrity sha512-
UDNO5snJYOLWrA2uOUxM/PVbzzh2TR7Zf2i8zCCuFlYgvAb/81XO+Tasp3YAElDpp4VGqqcpBXLtofa9nrnJGA
==
integrity sha512-
qQJHlZBG+QwVIA8AbTEtbvF084QgDi4DaUsUnA+EolY1bxrG+UyOuGflM2ZritGhfS/k7THFjJbjH2wIeoKA2g
==
esbuild-linux-ppc64le@0.13.1
0
:
esbuild-linux-ppc64le@0.13.1
2
:
version "0.13.1
0
"
version "0.13.1
2
"
resolved "https://registry.yarnpkg.com/esbuild-linux-ppc64le/-/esbuild-linux-ppc64le-0.13.1
0.tgz#18703cd0d52447d97486735b8e79fba7d81eac65
"
resolved "https://registry.yarnpkg.com/esbuild-linux-ppc64le/-/esbuild-linux-ppc64le-0.13.1
2.tgz#a21fb64e80c38bef06122e48283990fc6db578e1
"
integrity sha512-
xu6J9rMWu1TcEGuEmoc8gsTrJCEPsf+QtxK4IiUZNde9r4Q4nlRVah4JVZP3hJapZgZJcxsse0XiKXh1UFdOeA
==
integrity sha512-
2dSnm1ldL7Lppwlo04CGQUpwNn5hGqXI38OzaoPOkRsBRWFBozyGxTFSee/zHFS+Pdh3b28JJbRK3owrrRgWNw
==
esbuild-netbsd-64@0.13.1
0
:
esbuild-netbsd-64@0.13.1
2
:
version "0.13.1
0
"
version "0.13.1
2
"
resolved "https://registry.yarnpkg.com/esbuild-netbsd-64/-/esbuild-netbsd-64-0.13.1
0.tgz#3ecb06158aadb5b7396a5b7632069181b1591c56
"
resolved "https://registry.yarnpkg.com/esbuild-netbsd-64/-/esbuild-netbsd-64-0.13.1
2.tgz#1ea7fc8cfce88a20a4047b867ef184049a6641ae
"
integrity sha512-
d+Gr0ScMC2J83Bfx/ZvJHK0UAEMncctwgjRth9d4zppYGLk/xMfFKxv5z1ib8yZpQThafq8aPm8AqmFIJrEesw
==
integrity sha512-
D4raxr02dcRiQNbxOLzpqBzcJNFAdsDNxjUbKkDMZBkL54Z0vZh4LRndycdZAMcIdizC/l/Yp/ZsBdAFxc5nbA
==
esbuild-openbsd-64@0.13.1
0
:
esbuild-openbsd-64@0.13.1
2
:
version "0.13.1
0
"
version "0.13.1
2
"
resolved "https://registry.yarnpkg.com/esbuild-openbsd-64/-/esbuild-openbsd-64-0.13.1
0.tgz#3a6950b1d955de921ac52f7af0b4865e89d6e4f1
"
resolved "https://registry.yarnpkg.com/esbuild-openbsd-64/-/esbuild-openbsd-64-0.13.1
2.tgz#adde32f2f1b05dc4bd4fc544d6ea5a4379f9ca4d
"
integrity sha512-
OuCYc+bNKumBvxflga+nFzZvxsgmWQW+z4rMGIjM5XIW0nNbGgRc5p/0PSDv0rTdxAmwCpV69fezal0xjrDaaA
==
integrity sha512-
KuLCmYMb2kh05QuPJ+va60bKIH5wHL8ypDkmpy47lzwmdxNsuySeCMHuTv5o2Af1RUn5KLO5ZxaZeq4GEY7DaQ
==
esbuild-sunos-64@0.13.1
0
:
esbuild-sunos-64@0.13.1
2
:
version "0.13.1
0
"
version "0.13.1
2
"
resolved "https://registry.yarnpkg.com/esbuild-sunos-64/-/esbuild-sunos-64-0.13.1
0.tgz#ad407f721a8b5727fca31958b5eab1b0232e2d73
"
resolved "https://registry.yarnpkg.com/esbuild-sunos-64/-/esbuild-sunos-64-0.13.1
2.tgz#a7ecaf52b7364fbee76dc8aa707fa3e1cff3342c
"
integrity sha512-
gUkgivZK11bD56wDoLsnYrsOHD/zHzzLSdqKcIl3wRMulfHpRBpoX8gL0dbWr+8N9c+1HDdbNdvxSRmZ4RCVwg
==
integrity sha512-
jBsF+e0woK3miKI8ufGWKG3o3rY9DpHvCVRn5eburMIIE+2c+y3IZ1srsthKyKI6kkXLvV4Cf/E7w56kLipMXw
==
esbuild-windows-32@0.13.1
0
:
esbuild-windows-32@0.13.1
2
:
version "0.13.1
0
"
version "0.13.1
2
"
resolved "https://registry.yarnpkg.com/esbuild-windows-32/-/esbuild-windows-32-0.13.1
0.tgz#ddaaa0b6e172df6512edc7a91bd2456615cfa914
"
resolved "https://registry.yarnpkg.com/esbuild-windows-32/-/esbuild-windows-32-0.13.1
2.tgz#a8756033dc905c4b7bea19be69f7ee68809f8770
"
integrity sha512-
C1xJ54E56dGWRaYcTnRy7amVZ9n1/D/D2/qVw7e5EtS7p+Fv/yZxxgqyb1hMGKXgtFYX4jMpU5eWBF/AsYrn+A
==
integrity sha512-
L9m4lLFQrFeR7F+eLZXG82SbXZfUhyfu6CexZEil6vm+lc7GDCE0Q8DiNutkpzjv1+RAbIGVva9muItQ7HVTkQ
==
esbuild-windows-64@0.13.1
0
:
esbuild-windows-64@0.13.1
2
:
version "0.13.1
0
"
version "0.13.1
2
"
resolved "https://registry.yarnpkg.com/esbuild-windows-64/-/esbuild-windows-64-0.13.1
0.tgz#93d861abf36bf71b6e61f5cbd2e42762ce5cb83a
"
resolved "https://registry.yarnpkg.com/esbuild-windows-64/-/esbuild-windows-64-0.13.1
2.tgz#ae694aa66ca078acb8509b2da31197ed1f40f798
"
integrity sha512-
6+EXEXopEs3SvPFAHcps2Krp/FvqXXsOQV33cInmyilb0ZBEQew4MIoZtMIyB3YXoV6//dl3i6YbPrFZaWEin
Q==
integrity sha512-
k4tX4uJlSbSkfs78W5d9+I9gpd+7N95W7H2bgOMFPsYREVJs31+Q2gLLHlsnlY95zBoPQMIzHooUIsixQIBja
Q==
esbuild-windows-arm64@0.13.1
0
:
esbuild-windows-arm64@0.13.1
2
:
version "0.13.1
0
"
version "0.13.1
2
"
resolved "https://registry.yarnpkg.com/esbuild-windows-arm64/-/esbuild-windows-arm64-0.13.1
0.tgz#85a2d338aaa8b0cd1d8ecbe9150def9a608e8947
"
resolved "https://registry.yarnpkg.com/esbuild-windows-arm64/-/esbuild-windows-arm64-0.13.1
2.tgz#782c5a8bd6d717ea55aaafe648f9926ca36a4a88
"
integrity sha512-
xTqM/XKhORo6u9S5I0dNJWEdWoemFjogLUTVLkQMVyUV3ZuMChahVA+bCqKHdyX55pCFxD/8v2fm3/sfFMWN+g
==
integrity sha512-
2tTv/BpYRIvuwHpp2M960nG7uvL+d78LFW/ikPItO+2GfK51CswIKSetSpDii+cjz8e9iSPgs+BU4o8nWICBwQ
==
esbuild@^0.13.2:
esbuild@^0.13.2:
version "0.13.1
0
"
version "0.13.1
2
"
resolved "https://registry.yarnpkg.com/esbuild/-/esbuild-0.13.1
0.tgz#e3d24d59f1d8b2130d746ca858efcb80e1d99b26
"
resolved "https://registry.yarnpkg.com/esbuild/-/esbuild-0.13.1
2.tgz#9cac641594bf03cf34145258c093d743ebbde7ca
"
integrity sha512-
0NfCsnAh5XatHIx6Cu93wpR2v6opPoOMxONYhaAoZKzGYqAE+INcDeX2wqMdcndvPQdWCuuCmvlnsh0zmbHcSQ
==
integrity sha512-
vTKKUt+yoz61U/BbrnmlG9XIjwpdIxmHB8DlPR0AAW6OdS+nBQBci6LUHU2q9WbBobMEIQxxDpKbkmOGYvxsow
==
optionalDependencies:
optionalDependencies:
esbuild-android-arm64 "0.13.1
0
"
esbuild-android-arm64 "0.13.1
2
"
esbuild-darwin-64 "0.13.1
0
"
esbuild-darwin-64 "0.13.1
2
"
esbuild-darwin-arm64 "0.13.1
0
"
esbuild-darwin-arm64 "0.13.1
2
"
esbuild-freebsd-64 "0.13.1
0
"
esbuild-freebsd-64 "0.13.1
2
"
esbuild-freebsd-arm64 "0.13.1
0
"
esbuild-freebsd-arm64 "0.13.1
2
"
esbuild-linux-32 "0.13.1
0
"
esbuild-linux-32 "0.13.1
2
"
esbuild-linux-64 "0.13.1
0
"
esbuild-linux-64 "0.13.1
2
"
esbuild-linux-arm "0.13.1
0
"
esbuild-linux-arm "0.13.1
2
"
esbuild-linux-arm64 "0.13.1
0
"
esbuild-linux-arm64 "0.13.1
2
"
esbuild-linux-mips64le "0.13.1
0
"
esbuild-linux-mips64le "0.13.1
2
"
esbuild-linux-ppc64le "0.13.1
0
"
esbuild-linux-ppc64le "0.13.1
2
"
esbuild-netbsd-64 "0.13.1
0
"
esbuild-netbsd-64 "0.13.1
2
"
esbuild-openbsd-64 "0.13.1
0
"
esbuild-openbsd-64 "0.13.1
2
"
esbuild-sunos-64 "0.13.1
0
"
esbuild-sunos-64 "0.13.1
2
"
esbuild-windows-32 "0.13.1
0
"
esbuild-windows-32 "0.13.1
2
"
esbuild-windows-64 "0.13.1
0
"
esbuild-windows-64 "0.13.1
2
"
esbuild-windows-arm64 "0.13.1
0
"
esbuild-windows-arm64 "0.13.1
2
"
escape-html@~1.0.3:
escape-html@~1.0.3:
version "1.0.3"
version "1.0.3"
...
@@ -2243,7 +2243,7 @@ verror@1.10.0:
...
@@ -2243,7 +2243,7 @@ verror@1.10.0:
core-util-is "1.0.2"
core-util-is "1.0.2"
extsprintf "^1.2.0"
extsprintf "^1.2.0"
vite@^2.6.1
1
:
vite@^2.6.1
3
:
version "2.6.13"
version "2.6.13"
resolved "https://registry.yarnpkg.com/vite/-/vite-2.6.13.tgz#16b3ec85a66d5b461ac29a903874d4357f9af432"
resolved "https://registry.yarnpkg.com/vite/-/vite-2.6.13.tgz#16b3ec85a66d5b461ac29a903874d4357f9af432"
integrity sha512-+tGZ1OxozRirTudl4M3N3UTNJOlxdVo/qBl2IlDEy/ZpTFcskp+k5ncNjayR3bRYTCbqSOFz2JWGN1UmuDMScA==
integrity sha512-+tGZ1OxozRirTudl4M3N3UTNJOlxdVo/qBl2IlDEy/ZpTFcskp+k5ncNjayR3bRYTCbqSOFz2JWGN1UmuDMScA==
...
...
packages/uni-app-plus/dist/uni-app-view.umd.js
浏览文件 @
13961ec4
因为 它太大了无法显示 source diff 。你可以改为
查看blob
。
packages/uni-app-vue/dist/service.runtime.esm.dev.js
浏览文件 @
13961ec4
此差异已折叠。
点击以展开。
packages/uni-app-vue/dist/service.runtime.esm.prod.js
浏览文件 @
13961ec4
此差异已折叠。
点击以展开。
packages/uni-cli-shared/src/postcss/plugins/uniapp.ts
浏览文件 @
13961ec4
...
@@ -7,6 +7,7 @@ import {
...
@@ -7,6 +7,7 @@ import {
isBuiltInComponent
,
isBuiltInComponent
,
COMPONENT_SELECTOR_PREFIX
,
COMPONENT_SELECTOR_PREFIX
,
}
from
'
@dcloudio/uni-shared
'
}
from
'
@dcloudio/uni-shared
'
import
{
parseRpx2UnitOnce
}
from
'
../../json/manifest
'
interface
UniAppCssProcessorOptions
{
interface
UniAppCssProcessorOptions
{
page
?:
string
page
?:
string
...
@@ -15,12 +16,7 @@ interface UniAppCssProcessorOptions {
...
@@ -15,12 +16,7 @@ interface UniAppCssProcessorOptions {
unitPrecision
?:
number
// 单位精度,默认5
unitPrecision
?:
number
// 单位精度,默认5
}
}
const
defaultUniAppCssProcessorOptions
=
extend
(
const
defaultUniAppCssProcessorOptions
=
extend
({},
defaultRpx2Unit
)
{
page
:
'
body
'
,
},
defaultRpx2Unit
)
const
BG_PROPS
=
[
const
BG_PROPS
=
[
'
background
'
,
'
background
'
,
...
@@ -36,24 +32,18 @@ const BG_PROPS = [
...
@@ -36,24 +32,18 @@ const BG_PROPS = [
function
transform
(
function
transform
(
selector
:
selectorParser
.
Node
,
selector
:
selectorParser
.
Node
,
page
:
string
,
state
:
{
bg
:
boolean
}
,
state
:
{
bg
:
boolean
}
{
rewriteTag
}:
TransformOptions
)
{
)
{
if
(
selector
.
type
!==
'
tag
'
)
{
if
(
selector
.
type
!==
'
tag
'
)
{
return
return
}
}
const
{
value
}
=
selector
const
{
value
}
=
selector
if
(
isBuiltInComponent
(
value
))
{
selector
.
value
=
rewriteTag
(
value
)
selector
.
value
=
COMPONENT_SELECTOR_PREFIX
+
value
if
(
value
===
'
page
'
&&
selector
.
value
===
'
uni-page-body
'
)
{
}
else
if
(
value
===
'
page
'
)
{
if
(
!
page
)
{
return
}
selector
.
value
=
page
if
(
page
!==
'
body
'
)
{
state
.
bg
=
true
state
.
bg
=
true
}
}
}
}
}
function
createBodyBackgroundRule
(
origRule
:
Rule
)
{
function
createBodyBackgroundRule
(
origRule
:
Rule
)
{
...
@@ -68,11 +58,17 @@ function createBodyBackgroundRule(origRule: Rule) {
...
@@ -68,11 +58,17 @@ function createBodyBackgroundRule(origRule: Rule) {
}
}
}
}
function
walkRules
(
page
:
string
)
{
type
RewriteTag
=
(
tag
:
string
)
=>
string
interface
TransformOptions
{
rewriteTag
:
RewriteTag
}
function
walkRules
(
options
:
TransformOptions
)
{
return
(
rule
:
Rule
)
=>
{
return
(
rule
:
Rule
)
=>
{
const
state
=
{
bg
:
false
}
const
state
=
{
bg
:
false
}
rule
.
selector
=
selectorParser
((
selectors
)
=>
rule
.
selector
=
selectorParser
((
selectors
)
=>
selectors
.
walk
((
selector
)
=>
transform
(
selector
,
page
,
state
))
selectors
.
walk
((
selector
)
=>
transform
(
selector
,
state
,
options
))
).
processSync
(
rule
.
selector
)
).
processSync
(
rule
.
selector
)
state
.
bg
&&
createBodyBackgroundRule
(
rule
)
state
.
bg
&&
createBodyBackgroundRule
(
rule
)
}
}
...
@@ -88,8 +84,47 @@ function walkDecls(rpx2unit: ReturnType<typeof createRpx2Unit>) {
...
@@ -88,8 +84,47 @@ function walkDecls(rpx2unit: ReturnType<typeof createRpx2Unit>) {
}
}
}
}
const
baiduTags
:
Record
<
string
,
string
>
=
{
navigator
:
'
nav
'
,
}
function
rewriteBaiduTags
(
tag
:
string
)
{
return
baiduTags
[
tag
]
||
tag
}
function
rewriteUniH5Tags
(
tag
:
string
)
{
if
(
tag
===
'
page
'
)
{
return
'
uni-page-body
'
}
if
(
isBuiltInComponent
(
tag
))
{
return
COMPONENT_SELECTOR_PREFIX
+
tag
}
return
tag
}
function
rewriteUniAppTags
(
tag
:
string
)
{
if
(
tag
===
'
page
'
)
{
return
'
body
'
}
if
(
isBuiltInComponent
(
tag
))
{
return
COMPONENT_SELECTOR_PREFIX
+
tag
}
return
tag
}
const
transforms
:
Record
<
string
,
RewriteTag
|
undefined
>
=
{
h5
:
rewriteUniH5Tags
,
app
:
rewriteUniAppTags
,
'
mp-baidu
'
:
rewriteBaiduTags
,
}
const
uniapp
=
(
opts
?:
UniAppCssProcessorOptions
)
=>
{
const
uniapp
=
(
opts
?:
UniAppCssProcessorOptions
)
=>
{
const
{
page
,
unit
,
unitRatio
,
unitPrecision
}
=
extend
(
const
platform
=
process
.
env
.
UNI_PLATFORM
if
(
!
opts
)
{
const
inputDir
=
process
.
env
.
UNI_INPUT_DIR
opts
=
extend
(
parseRpx2UnitOnce
(
inputDir
,
platform
))
}
const
{
unit
,
unitRatio
,
unitPrecision
}
=
extend
(
{},
{},
defaultUniAppCssProcessorOptions
,
defaultUniAppCssProcessorOptions
,
opts
||
{}
opts
||
{}
...
@@ -101,7 +136,14 @@ const uniapp = (opts?: UniAppCssProcessorOptions) => {
...
@@ -101,7 +136,14 @@ const uniapp = (opts?: UniAppCssProcessorOptions) => {
return
{
return
{
OnceExit
(
root
)
{
OnceExit
(
root
)
{
root
.
walkDecls
(
walkDecls
(
rpx2unit
))
root
.
walkDecls
(
walkDecls
(
rpx2unit
))
page
&&
root
.
walkRules
(
walkRules
(
page
))
const
rewriteTag
=
transforms
[
platform
]
if
(
rewriteTag
)
{
root
.
walkRules
(
walkRules
({
rewriteTag
,
})
)
}
},
},
}
}
},
},
...
...
packages/uni-cli-shared/src/vite/plugins/vitejs/plugins/css.ts
浏览文件 @
13961ec4
...
@@ -802,7 +802,7 @@ const scss: SassStylePreprocessor = async (
...
@@ -802,7 +802,7 @@ const scss: SassStylePreprocessor = async (
if
(
resolved
)
{
if
(
resolved
)
{
rebaseUrls
(
resolved
,
options
.
filename
,
options
.
alias
).
then
(
done
)
rebaseUrls
(
resolved
,
options
.
filename
,
options
.
alias
).
then
(
done
)
}
else
{
}
else
{
done
(
null
)
done
&&
done
(
null
)
}
}
})
})
}
}
...
...
packages/uni-mp-compiler/__tests__/slot.spec.ts
浏览文件 @
13961ec4
...
@@ -34,6 +34,15 @@ describe('compiler: transform slot', () => {
...
@@ -34,6 +34,15 @@ describe('compiler: transform slot', () => {
`<button><block wx:if="{{$slots.text}}"><slot name="text"></slot></block><block wx:else>Submit</block></button>`
,
`<button><block wx:if="{{$slots.text}}"><slot name="text"></slot></block><block wx:else>Submit</block></button>`
,
`(_ctx, _cache) => {
`(_ctx, _cache) => {
return {}
return {}
}`
)
})
test
(
'
slot with v-for
'
,
()
=>
{
assert
(
`<slot v-for="(item,index) in items" :key="index"></slot>`
,
`<slot wx:for="{{a}}" wx:for-item="item"></slot>`
,
`(_ctx, _cache) => {
return { a: _f(_ctx.items, (item, index, i0) => { return { a: _r(\"default\", { key: index }) }; }) }
}`
}`
)
)
})
})
...
...
packages/uni-mp-compiler/__tests__/transformElement.spec.ts
浏览文件 @
13961ec4
...
@@ -79,7 +79,7 @@ export function render(_ctx, _cache) {
...
@@ -79,7 +79,7 @@ export function render(_ctx, _cache) {
Foo
:
{
name
:
'
_component_Foo
'
,
type
:
BindingComponentTypes
.
UNKNOWN
},
Foo
:
{
name
:
'
_component_Foo
'
,
type
:
BindingComponentTypes
.
UNKNOWN
},
Bar
:
{
name
:
'
_component_Bar
'
,
type
:
BindingComponentTypes
.
UNKNOWN
},
Bar
:
{
name
:
'
_component_Bar
'
,
type
:
BindingComponentTypes
.
UNKNOWN
},
Example
:
{
name
:
'
$setup["Example"]
'
,
type
:
BindingComponentTypes
.
SETUP
},
Example
:
{
name
:
'
$setup["Example"]
'
,
type
:
BindingComponentTypes
.
SETUP
},
Test
:
{
name
:
'
_component_Test
'
,
type
:
BindingComponentTypes
.
SELF
},
Test
:
{
name
:
'
_component_Test
'
,
type
:
BindingComponentTypes
.
UNKNOWN
},
})
})
expect
(
code
).
toContain
(
expect
(
code
).
toContain
(
`if (!Math) { Math.max.call(Max, $setup["Example"]) }`
`if (!Math) { Math.max.call(Max, $setup["Example"]) }`
...
@@ -91,7 +91,10 @@ export function render(_ctx, _cache) {
...
@@ -91,7 +91,10 @@ export function render(_ctx, _cache) {
filename
:
`/foo/bar/Example.vue?vue&type=template`
,
filename
:
`/foo/bar/Example.vue?vue&type=template`
,
})
})
expect
((
root
as
CodegenRootNode
).
bindingComponents
).
toEqual
({
expect
((
root
as
CodegenRootNode
).
bindingComponents
).
toEqual
({
Example
:
{
name
:
'
_component_Example
'
,
type
:
BindingComponentTypes
.
SELF
},
Example
:
{
name
:
'
_component_Example
'
,
type
:
BindingComponentTypes
.
UNKNOWN
,
},
})
})
})
})
...
...
packages/uni-mp-compiler/src/transform.ts
浏览文件 @
13961ec4
import
{
import
{
NOOP
,
EMPTY_OBJ
,
extend
,
isString
,
isArray
,
hasOwn
}
from
'
@vue/shared
'
NOOP
,
EMPTY_OBJ
,
extend
,
isString
,
isArray
,
capitalize
,
camelize
,
hasOwn
,
}
from
'
@vue/shared
'
import
{
import
{
ConditionalExpression
,
ConditionalExpression
,
...
@@ -314,10 +305,11 @@ export function createTransformContext(
...
@@ -314,10 +305,11 @@ export function createTransformContext(
const
vueIds
:
string
[]
=
[]
const
vueIds
:
string
[]
=
[]
const
identifiers
=
Object
.
create
(
null
)
const
identifiers
=
Object
.
create
(
null
)
const
scopes
:
CodegenScope
[]
=
[
rootScope
]
const
scopes
:
CodegenScope
[]
=
[
rootScope
]
const
nameMatch
=
filename
.
replace
(
/
\?
.*$/
,
''
).
match
(
/
([^/\\]
+
)\.\w
+$/
)
//
const nameMatch = filename.replace(/\?.*$/, '').match(/([^/\\]+)\.\w+$/)
const
context
:
TransformContext
=
{
const
context
:
TransformContext
=
{
// options
// options
selfName
:
nameMatch
&&
capitalize
(
camelize
(
nameMatch
[
1
])),
// 暂不提供根据文件名生成递归组件
selfName
:
''
,
//nameMatch && capitalize(camelize(nameMatch[1])),
miniProgram
,
miniProgram
,
isTS
,
isTS
,
inline
,
inline
,
...
...
yarn.lock
浏览文件 @
13961ec4
此差异已折叠。
点击以展开。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录