Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
wzj-java
uni-app
提交
d7463125
U
uni-app
项目概览
wzj-java
/
uni-app
与 Fork 源项目一致
Fork自
DCloud / uni-app
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
U
uni-app
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
d7463125
编写于
10月 20, 2021
作者:
fxy060608
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix(h5): ssr
上级
0216627a
变更
12
展开全部
隐藏空白更改
内联
并排
Showing
12 changed file
with
1468 addition
and
1656 deletion
+1468
-1656
packages/playground/ssr/yarn.lock
packages/playground/ssr/yarn.lock
+139
-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-plus/vite.config.ts
packages/uni-app-plus/vite.config.ts
+3
-3
packages/uni-h5-vite/src/plugin/index.ts
packages/uni-h5-vite/src/plugin/index.ts
+5
-0
packages/uni-h5/dist/uni-h5.cjs.js
packages/uni-h5/dist/uni-h5.cjs.js
+577
-703
packages/uni-h5/dist/uni-h5.es.js
packages/uni-h5/dist/uni-h5.es.js
+679
-814
packages/uni-h5/vite.config.ts
packages/uni-h5/vite.config.ts
+3
-3
packages/uni-mp-compiler/__tests__/ref.spec.ts
packages/uni-mp-compiler/__tests__/ref.spec.ts
+22
-0
packages/uni-mp-compiler/__tests__/vSlot.spec.ts
packages/uni-mp-compiler/__tests__/vSlot.spec.ts
+4
-4
packages/uni-mp-compiler/src/transforms/transformElement.ts
packages/uni-mp-compiler/src/transforms/transformElement.ts
+18
-4
packages/vite-plugin-uni/src/index.ts
packages/vite-plugin-uni/src/index.ts
+8
-6
packages/vite-plugin-uni/src/vue/options.ts
packages/vite-plugin-uni/src/vue/options.ts
+7
-3
未找到文件。
packages/playground/ssr/yarn.lock
浏览文件 @
d7463125
...
...
@@ -2,11 +2,24 @@
# yarn lockfile v1
"@babel/helper-validator-identifier@^7.14.9":
version "7.15.7"
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==
"@babel/parser@^7.15.0":
version "7.15.8"
resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.15.8.tgz#7bacdcbe71bdc3ff936d510c15dcea7cf0b99016"
integrity sha512-BRYa3wcQnjS/nqI8Ac94pYYpJfojHVvVXJ97+IDCImX4Jc8W8Xv1+47enbruk+q1etOpsQNwnfFcNGw+gtPGxA==
"@babel/types@^7.15.0":
version "7.15.6"
resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.15.6.tgz#99abdc48218b2881c058dd0a7ab05b99c9be758f"
integrity sha512-BPU+7QhqNjmWyDO0/vitH/CuhpV8ZmK1wpKva8nuyNF5MJfuRNWMc+hc14+u9xT93kvykMdncrJT19h74uB1Ig==
dependencies:
"@babel/helper-validator-identifier" "^7.14.9"
to-fast-properties "^2.0.0"
"@cypress/request@^2.88.5":
version "2.88.6"
resolved "https://registry.yarnpkg.com/@cypress/request/-/request-2.88.6.tgz#a970dd675befc6bdf8a8921576c01f51cc5798e9"
...
...
@@ -46,10 +59,13 @@
"@dcloudio/uni-cli-shared@../../uni-cli-shared":
version "3.0.0-alpha-3021020211012005"
dependencies:
"@babel/parser" "^7.15.0"
"@babel/types" "^7.15.0"
"@rollup/pluginutils" "^4.1.1"
chokidar "^3.5.2"
compare-versions "^3.6.0"
debug "^4.3.1"
es-module-lexer "^0.9.3"
estree-walker "^2.0.2"
fast-glob "^3.2.7"
fs-extra "^10.0.0"
...
...
@@ -140,9 +156,9 @@
"@types/node" "*"
"@types/glob@^7.1.1":
version "7.
1.4
"
resolved "https://registry.yarnpkg.com/@types/glob/-/glob-7.
1.4.tgz#ea59e21d2ee5c517914cb4bc8e4153b99e566672
"
integrity sha512-
w+LsMxKyYQm347Otw+IfBXOv9UWVjpHpCDdbBMt8Kz/xbvCYNjP+0qPh91Km3iKfSRLBB0P7fAMf0KHrPu+My
A==
version "7.
2.0
"
resolved "https://registry.yarnpkg.com/@types/glob/-/glob-7.
2.0.tgz#bc1b5bf3aa92f25bd5dd39f35c57361bdce5b2eb
"
integrity sha512-
ZUxbzKl0IfJILTS6t7ip5fQQM/J3TJYubDm3nMbgubNNYS62eXeUpoLUC8/7fJNiFYHTrGPQn7hspDUzIHX3U
A==
dependencies:
"@types/minimatch" "*"
"@types/node" "*"
...
...
@@ -153,9 +169,9 @@
integrity sha512-Klz949h02Gz2uZCMGwDUSDS1YBlTdDDgbWHi+81l29tQALUtvz4rAYi5uoVhE5Lagoq6DeqAUlbrHvW/mXDgdQ==
"@types/node@*":
version "16.11.
0
"
resolved "https://registry.yarnpkg.com/@types/node/-/node-16.11.
0.tgz#4b95f2327bacd1ef8f08d8ceda193039c5d7f52e
"
integrity sha512-
8MLkBIYQMuhRBQzGN9875bYsOhPnf/0rgXGo66S2FemHkhbn9qtsz9ywV1iCG+vbjigE4WUNVvw37Dx+L0qsPg
==
version "16.11.
1
"
resolved "https://registry.yarnpkg.com/@types/node/-/node-16.11.
1.tgz#2e50a649a50fc403433a14f829eface1a3443e97
"
integrity sha512-
PYGcJHL9mwl1Ek3PLiYgyEKtwTMmkMw4vbiyz/ps3pfdRYLVv+SN7qHVAImrjdAXxgluDEw6Ph4lyv+m9UpRmA
==
"@types/node@^14.14.31":
version "14.17.27"
...
...
@@ -799,113 +815,118 @@ enquirer@^2.3.6:
dependencies:
ansi-colors "^4.1.1"
esbuild-android-arm64@0.13.6:
version "0.13.6"
resolved "https://registry.yarnpkg.com/esbuild-android-arm64/-/esbuild-android-arm64-0.13.6.tgz#a109b4e5203e9ec144cadccdf18a5daf021423e5"
integrity sha512-uEwrMRzqNzXxzIi0K/CtHn3/SPoRso4Dd/aJCpf9KuX+kCs9Tlhz29cKbZieznYAekdo36fDUrZyuugAwSdI+A==
esbuild-darwin-64@0.13.6:
version "0.13.6"
resolved "https://registry.yarnpkg.com/esbuild-darwin-64/-/esbuild-darwin-64-0.13.6.tgz#1a00ef4d2b3b1fe9de28a5cf195df113d6461155"
integrity sha512-oJdWZn2QV5LTM24/vVWaUFlMVlRhpG9zZIA6Xd+xbCULOURwYnYRQWIzRpXNtTfuAr3+em9PqKUaGtYqvO/DYg==
esbuild-darwin-arm64@0.13.6:
version "0.13.6"
resolved "https://registry.yarnpkg.com/esbuild-darwin-arm64/-/esbuild-darwin-arm64-0.13.6.tgz#f48954d441059e2d06c1675ddcc25af00b164935"
integrity sha512-+f8Yn5doTEpCWtBaGxciDTikxESdGCNZpLYtXzMJLTWFHr8zqfAf4TAYGvg6T5T6N7OMC8HHy3GM+BijFXDXMg==
esbuild-freebsd-64@0.13.6:
version "0.13.6"
resolved "https://registry.yarnpkg.com/esbuild-freebsd-64/-/esbuild-freebsd-64-0.13.6.tgz#b3bfea7e21f0d80796220927118fc76170cac06f"
integrity sha512-Yb/DgZUX0C6i4vnOymthLzoWAJBYWbn3Y2F4wKEufsx2veGN/wlwO/yz7IWGVVzb2zMUqbt30hCLF61sUFe7gA==
esbuild-freebsd-arm64@0.13.6:
version "0.13.6"
resolved "https://registry.yarnpkg.com/esbuild-freebsd-arm64/-/esbuild-freebsd-arm64-0.13.6.tgz#e6f5777a85012457ada049fc6b1e3e2c36161514"
integrity sha512-UKYlEb7mwprSJ9VW9+q3/Mgxest45I6rGMB/hrKY1T6lqoBVhWS4BTbL4EGetWdk05Tw4njFAO9+nmxgl7jMlA==
esbuild-linux-32@0.13.6:
version "0.13.6"
resolved "https://registry.yarnpkg.com/esbuild-linux-32/-/esbuild-linux-32-0.13.6.tgz#8b04058312a76faec6964b954f1f02ab32ce43fe"
integrity sha512-hQCZfSLBYtn8f1afFT6Dh9KeLsW12xLqrqssbhpi/xfN9c/bbCh/QQZaR9ZOEnmBHHRPb7rbSo3jQqlCWYb7LQ==
esbuild-linux-64@0.13.6:
version "0.13.6"
resolved "https://registry.yarnpkg.com/esbuild-linux-64/-/esbuild-linux-64-0.13.6.tgz#554d8edfe3f791f8b26978eb173b2e13643442c0"
integrity sha512-bRQwsD+xJoajonfyeq5JpiNRogH4mYFYbYsGhwrtQ4pMGk93V/4KuKQiKEisRZO0hYhZL4MtxufwF195zKlCAw==
esbuild-linux-arm64@0.13.6:
version "0.13.6"
resolved "https://registry.yarnpkg.com/esbuild-linux-arm64/-/esbuild-linux-arm64-0.13.6.tgz#2142fadbdbc0ebd52a166f956f0ecb1f6602112a"
integrity sha512-sRc1lt9ma1xBvInCwpS77ywR6KVdcJNsErsrDkDXx3mVe8DLLEn05TG0nIX9I+s8ouHEepikdKCfe1DZdILRjQ==
esbuild-linux-arm@0.13.6:
version "0.13.6"
resolved "https://registry.yarnpkg.com/esbuild-linux-arm/-/esbuild-linux-arm-0.13.6.tgz#ced8e35a94e0adbf134e5fa4e2b661f897e14b27"
integrity sha512-qQUrpL7QoPqujXEFSpeu6QZ43z0+OdDPHDkLO0GPbpV/jebP7J+0FreMqoq7ZxWG4rPigwcRdEyqzHh8Bh4Faw==
esbuild-linux-mips64le@0.13.6:
version "0.13.6"
resolved "https://registry.yarnpkg.com/esbuild-linux-mips64le/-/esbuild-linux-mips64le-0.13.6.tgz#e5cbc050f5d44f8ecc0f79b1641bbad3919a2b3a"
integrity sha512-1lsHZaIsHlFkHn1QRa/EONPGVHwzdIrkKn6r2m9cYUIn2J+rKtJg0e+WkNG3MaIrxozaGKaiSPGvaG1toCbZjw==
esbuild-linux-ppc64le@0.13.6:
version "0.13.6"
resolved "https://registry.yarnpkg.com/esbuild-linux-ppc64le/-/esbuild-linux-ppc64le-0.13.6.tgz#57868a7eb762c1d19fa6d367b09a4610f0cbf7ca"
integrity sha512-x223JNC8XeLDf05zLaKfxqCEWVct4frp8ft8Qc13cha33TMrqMFaSPq6cgpgT2VYuUsXtwoocoWChKfvy+AUQg==
esbuild-netbsd-64@0.13.6:
version "0.13.6"
resolved "https://registry.yarnpkg.com/esbuild-netbsd-64/-/esbuild-netbsd-64-0.13.6.tgz#1c5daa62571f1065e4a1100a1db5e488ef259024"
integrity sha512-TonKf530kT25+zi1Da6esITmuBJe13QiN+QGVch6YE8t720IvIelDGwkOQN3Td7A0JjbSbK3u+Fo6YaL151VxQ==
esbuild-openbsd-64@0.13.6:
version "0.13.6"
resolved "https://registry.yarnpkg.com/esbuild-openbsd-64/-/esbuild-openbsd-64-0.13.6.tgz#315fd85970365835f6a1eb7b6e9335d59f772564"
integrity sha512-WFa5J0IuyER0UJbCGw87gvGWXGfhxeNppYcvQjp0pWYuH4FS+YqphyjV0RJlybzzDpAXkyZ9RzkMFtSAp+6AUA==
esbuild-sunos-64@0.13.6:
version "0.13.6"
resolved "https://registry.yarnpkg.com/esbuild-sunos-64/-/esbuild-sunos-64-0.13.6.tgz#8422eeb9f3712daa4befd19e5da6d7c9af9fc744"
integrity sha512-duCL8Ewri+zjKxuN/61maniDxcd8fHwSuubdAPofll0y0E6WcL/R/e/mQzhHIuoguFm5RJkKun1qua54javh7g==
esbuild-windows-32@0.13.6:
version "0.13.6"
resolved "https://registry.yarnpkg.com/esbuild-windows-32/-/esbuild-windows-32-0.13.6.tgz#694eb4768ee72219d3bc6415b1d3a0f843aea9ec"
integrity sha512-U8RkpT4f0/dygA5ytFyHNZ/fRECU9LWBMrqWflNhM31iTi6RhU0QTuOzFYkmpYnwl358ZZhVoBeEOm313d4u4A==
esbuild-windows-64@0.13.6:
version "0.13.6"
resolved "https://registry.yarnpkg.com/esbuild-windows-64/-/esbuild-windows-64-0.13.6.tgz#1adbf5367b08e735262f57098d19c07d0a2fec1c"
integrity sha512-A23VyUeyBfSWUYNL0jtrJi5M/2yR/RR8zfpGQ0wU0fldqV2vxnvmBYOBwRxexFYCDRpRWh4cPFsoYoXRCFa8Dg==
esbuild-windows-arm64@0.13.6:
version "0.13.6"
resolved "https://registry.yarnpkg.com/esbuild-windows-arm64/-/esbuild-windows-arm64-0.13.6.tgz#9279083740ec90a2d638485c97b1d003771d685a"
integrity sha512-K/pFqK/s5C6wXYcFKO9iPY4yU3DI0/Gbl1W2+OhaPHoXu13VGBmqbCiQ5lohHGE72FFQl76naOjEayEiI+gDMQ==
es-module-lexer@^0.9.3:
version "0.9.3"
resolved "https://registry.yarnpkg.com/es-module-lexer/-/es-module-lexer-0.9.3.tgz#6f13db00cc38417137daf74366f535c8eb438f19"
integrity sha512-1HQ2M2sPtxwnvOvT1ZClHyQDiggdNjURWpY2we6aMKCQiUVxTmVs2UYPLIrD84sS+kMdUwfBSylbJPwNnBrnHQ==
esbuild-android-arm64@0.13.8:
version "0.13.8"
resolved "https://registry.yarnpkg.com/esbuild-android-arm64/-/esbuild-android-arm64-0.13.8.tgz#c20e875c3c98164b1ffba9b28637bdf96f5e9e7c"
integrity sha512-AilbChndywpk7CdKkNSZ9klxl+9MboLctXd9LwLo3b0dawmOF/i/t2U5d8LM6SbT1Xw36F8yngSUPrd8yPs2RA==
esbuild-darwin-64@0.13.8:
version "0.13.8"
resolved "https://registry.yarnpkg.com/esbuild-darwin-64/-/esbuild-darwin-64-0.13.8.tgz#f46e6b471ddbf62265234808a6a1aa91df18a417"
integrity sha512-b6sdiT84zV5LVaoF+UoMVGJzR/iE2vNUfUDfFQGrm4LBwM/PWXweKpuu6RD9mcyCq18cLxkP6w/LD/w9DtX3ng==
esbuild-darwin-arm64@0.13.8:
version "0.13.8"
resolved "https://registry.yarnpkg.com/esbuild-darwin-arm64/-/esbuild-darwin-arm64-0.13.8.tgz#a991157a6013facd4f2e14159b7da52626c90154"
integrity sha512-R8YuPiiJayuJJRUBG4H0VwkEKo6AvhJs2m7Tl0JaIer3u1FHHXwGhMxjJDmK+kXwTFPriSysPvcobXC/UrrZCQ==
esbuild-freebsd-64@0.13.8:
version "0.13.8"
resolved "https://registry.yarnpkg.com/esbuild-freebsd-64/-/esbuild-freebsd-64-0.13.8.tgz#301601d2e443ad458960e359b402a17d9500be9d"
integrity sha512-zBn6urrn8FnKC+YSgDxdof9jhPCeU8kR/qaamlV4gI8R3KUaUK162WYM7UyFVAlj9N0MyD3AtB+hltzu4cysTw==
esbuild-freebsd-arm64@0.13.8:
version "0.13.8"
resolved "https://registry.yarnpkg.com/esbuild-freebsd-arm64/-/esbuild-freebsd-arm64-0.13.8.tgz#039a63acc12ec0892006c147ea221e55f9125a9f"
integrity sha512-pWW2slN7lGlkx0MOEBoUGwRX5UgSCLq3dy2c8RIOpiHtA87xAUpDBvZK10MykbT+aMfXc0NI2lu1X+6kI34xng==
esbuild-linux-32@0.13.8:
version "0.13.8"
resolved "https://registry.yarnpkg.com/esbuild-linux-32/-/esbuild-linux-32-0.13.8.tgz#c537b67d7e694b60bfa2786581412838c6ba0284"
integrity sha512-T0I0ueeKVO/Is0CAeSEOG9s2jeNNb8jrrMwG9QBIm3UU18MRB60ERgkS2uV3fZ1vP2F8i3Z2e3Zju4lg9dhVmw==
esbuild-linux-64@0.13.8:
version "0.13.8"
resolved "https://registry.yarnpkg.com/esbuild-linux-64/-/esbuild-linux-64-0.13.8.tgz#0092fc8a064001a777bfa0e3b425bb8be8f96e6a"
integrity sha512-Bm8SYmFtvfDCIu9sjKppFXzRXn2BVpuCinU1ChTuMtdKI/7aPpXIrkqBNOgPTOQO9AylJJc1Zw6EvtKORhn64w==
esbuild-linux-arm64@0.13.8:
version "0.13.8"
resolved "https://registry.yarnpkg.com/esbuild-linux-arm64/-/esbuild-linux-arm64-0.13.8.tgz#5cd3f2bb924212971482e8dbc25c4afd09b28110"
integrity sha512-X4pWZ+SL+FJ09chWFgRNO3F+YtvAQRcWh0uxKqZSWKiWodAB20flsW/OWFYLXBKiVCTeoGMvENZS/GeVac7+tQ==
esbuild-linux-arm@0.13.8:
version "0.13.8"
resolved "https://registry.yarnpkg.com/esbuild-linux-arm/-/esbuild-linux-arm-0.13.8.tgz#ad634f96bf2975536907aeb9fdb75a3194f4ddce"
integrity sha512-4/HfcC40LJ4GPyboHA+db0jpFarTB628D1ifU+/5bunIgY+t6mHkJWyxWxAAE8wl/ZIuRYB9RJFdYpu1AXGPdg==
esbuild-linux-mips64le@0.13.8:
version "0.13.8"
resolved "https://registry.yarnpkg.com/esbuild-linux-mips64le/-/esbuild-linux-mips64le-0.13.8.tgz#57857edfebf9bf65766dc8be1637f2179c990572"
integrity sha512-o7e0D+sqHKT31v+mwFircJFjwSKVd2nbkHEn4l9xQ1hLR+Bv8rnt3HqlblY3+sBdlrOTGSwz0ReROlKUMJyldA==
esbuild-linux-ppc64le@0.13.8:
version "0.13.8"
resolved "https://registry.yarnpkg.com/esbuild-linux-ppc64le/-/esbuild-linux-ppc64le-0.13.8.tgz#fdb82a059a5b86bb10fb42091b4ebcf488b9cd46"
integrity sha512-eZSQ0ERsWkukJp2px/UWJHVNuy0lMoz/HZcRWAbB6reoaBw7S9vMzYNUnflfL3XA6WDs+dZn3ekHE4Y2uWLGig==
esbuild-netbsd-64@0.13.8:
version "0.13.8"
resolved "https://registry.yarnpkg.com/esbuild-netbsd-64/-/esbuild-netbsd-64-0.13.8.tgz#d7879e7123d3b2c04754ece8bd061aa6866deeff"
integrity sha512-gZX4kP7gVvOrvX0ZwgHmbuHczQUwqYppxqtoyC7VNd80t5nBHOFXVhWo2Ad/Lms0E8b+wwgI/WjZFTCpUHOg9Q==
esbuild-openbsd-64@0.13.8:
version "0.13.8"
resolved "https://registry.yarnpkg.com/esbuild-openbsd-64/-/esbuild-openbsd-64-0.13.8.tgz#88b280b6cb0a3f6adb60abf27fc506c506a35cf0"
integrity sha512-afzza308X4WmcebexbTzAgfEWt9MUkdTvwIa8xOu4CM2qGbl2LanqEl8/LUs8jh6Gqw6WsicEK52GPrS9wvkcw==
esbuild-sunos-64@0.13.8:
version "0.13.8"
resolved "https://registry.yarnpkg.com/esbuild-sunos-64/-/esbuild-sunos-64-0.13.8.tgz#229ae7c7703196a58acd0f0291ad9bebda815d63"
integrity sha512-mWPZibmBbuMKD+LDN23LGcOZ2EawMYBONMXXHmbuxeT0XxCNwadbCVwUQ/2p5Dp5Kvf6mhrlIffcnWOiCBpiVw==
esbuild-windows-32@0.13.8:
version "0.13.8"
resolved "https://registry.yarnpkg.com/esbuild-windows-32/-/esbuild-windows-32-0.13.8.tgz#892d093e32a21c0c9135e5a0ffdc380aeb70e763"
integrity sha512-QsZ1HnWIcnIEApETZWw8HlOhDSWqdZX2SylU7IzGxOYyVcX7QI06ety/aDcn437mwyO7Ph4RrbhB+2ntM8kX8A==
esbuild-windows-64@0.13.8:
version "0.13.8"
resolved "https://registry.yarnpkg.com/esbuild-windows-64/-/esbuild-windows-64-0.13.8.tgz#7defd8d79ae3bb7e6f53b65a7190be7daf901686"
integrity sha512-76Fb57B9eE/JmJi1QmUW0tRLQZfGo0it+JeYoCDTSlbTn7LV44ecOHIMJSSgZADUtRMWT9z0Kz186bnaB3amSg==
esbuild-windows-arm64@0.13.8:
version "0.13.8"
resolved "https://registry.yarnpkg.com/esbuild-windows-arm64/-/esbuild-windows-arm64-0.13.8.tgz#e59ae004496fd8a5ab67bfc7945a2e47480d6fb9"
integrity sha512-HW6Mtq5eTudllxY2YgT62MrVcn7oq2o8TAoAvDUhyiEmRmDY8tPwAhb1vxw5/cdkbukM3KdMYtksnUhF/ekWeg==
esbuild@^0.13.2:
version "0.13.
6
"
resolved "https://registry.yarnpkg.com/esbuild/-/esbuild-0.13.
6.tgz#b9be288108d47e814a6c8729e495dce0fddbf441
"
integrity sha512-
zkMkYwC9ohVe6qxXykKf/4jfbtM/09CL8UEEnwuhO7Xq8NOTN2yAwCrmKKvHlGrEej6Y8e/tAmHB7wMMg7O0e
w==
version "0.13.
8
"
resolved "https://registry.yarnpkg.com/esbuild/-/esbuild-0.13.
8.tgz#bd7cc51b881ab067789f88e17baca74724c1ec4f
"
integrity sha512-
A4af7G7YZLfG5OnARJRMtlpEsCkq/zHZQXewgPA864l9D6VjjbH1SuFYK/OSV6BtHwDGkdwyRrX0qQFLnMfUc
w==
optionalDependencies:
esbuild-android-arm64 "0.13.
6
"
esbuild-darwin-64 "0.13.
6
"
esbuild-darwin-arm64 "0.13.
6
"
esbuild-freebsd-64 "0.13.
6
"
esbuild-freebsd-arm64 "0.13.
6
"
esbuild-linux-32 "0.13.
6
"
esbuild-linux-64 "0.13.
6
"
esbuild-linux-arm "0.13.
6
"
esbuild-linux-arm64 "0.13.
6
"
esbuild-linux-mips64le "0.13.
6
"
esbuild-linux-ppc64le "0.13.
6
"
esbuild-netbsd-64 "0.13.
6
"
esbuild-openbsd-64 "0.13.
6
"
esbuild-sunos-64 "0.13.
6
"
esbuild-windows-32 "0.13.
6
"
esbuild-windows-64 "0.13.
6
"
esbuild-windows-arm64 "0.13.
6
"
esbuild-android-arm64 "0.13.
8
"
esbuild-darwin-64 "0.13.
8
"
esbuild-darwin-arm64 "0.13.
8
"
esbuild-freebsd-64 "0.13.
8
"
esbuild-freebsd-arm64 "0.13.
8
"
esbuild-linux-32 "0.13.
8
"
esbuild-linux-64 "0.13.
8
"
esbuild-linux-arm "0.13.
8
"
esbuild-linux-arm64 "0.13.
8
"
esbuild-linux-mips64le "0.13.
8
"
esbuild-linux-ppc64le "0.13.
8
"
esbuild-netbsd-64 "0.13.
8
"
esbuild-openbsd-64 "0.13.
8
"
esbuild-sunos-64 "0.13.
8
"
esbuild-windows-32 "0.13.
8
"
esbuild-windows-64 "0.13.
8
"
esbuild-windows-arm64 "0.13.
8
"
escape-html@~1.0.3:
version "1.0.3"
...
...
@@ -2097,6 +2118,11 @@ tmp@~0.2.1:
dependencies:
rimraf "^3.0.0"
to-fast-properties@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/to-fast-properties/-/to-fast-properties-2.0.0.tgz#dc5e698cbd079265bc73e0377681a4e4e83f616e"
integrity sha1-3F5pjL0HkmW8c+A3doGk5Og/YW4=
to-regex-range@^5.0.1:
version "5.0.1"
resolved "https://registry.yarnpkg.com/to-regex-range/-/to-regex-range-5.0.1.tgz#1648c44aae7c8d988a326018ed72f5b4dd0392e4"
...
...
@@ -2212,9 +2238,9 @@ verror@1.10.0:
extsprintf "^1.2.0"
vite@^2.6.7:
version "2.6.
7
"
resolved "https://registry.yarnpkg.com/vite/-/vite-2.6.
7.tgz#e15c1d8327950720b5d7c4ec3fb36a5a58ccf7cb
"
integrity sha512-
ewk//jve9k6vlU8PfJmWUHN8k0YYdw4VaKOMvoQ3nT2Pb6k5OSMKQi4jPOzVH/TlUqMsCrq7IJ80xcuDDVyig
g==
version "2.6.
10
"
resolved "https://registry.yarnpkg.com/vite/-/vite-2.6.
10.tgz#7a4f420c6e2c7d9062c7f9ce4578a817c72b3842
"
integrity sha512-
XbevwpDJMs3lKiGEj0UQScsOCpwHIjFgfzPnFVkPgnxsF9oPv1uGyckLg58XkXv6LnO46KN9yZqJzINFmAxtU
g==
dependencies:
esbuild "^0.13.2"
postcss "^8.3.8"
...
...
packages/uni-app-plus/dist/uni-app-view.umd.js
浏览文件 @
d7463125
因为 它太大了无法显示 source diff 。你可以改为
查看blob
。
packages/uni-app-plus/vite.config.ts
浏览文件 @
d7463125
...
...
@@ -8,7 +8,7 @@ import vue from '@vitejs/plugin-vue'
import
vueJsx
from
'
@vitejs/plugin-vue-jsx
'
import
babel
from
'
@rollup/plugin-babel
'
import
{
isCustomElement
}
from
'
@dcloudio/uni-shared
'
import
{
is
H5
CustomElement
}
from
'
@dcloudio/uni-shared
'
function
resolve
(
file
:
string
)
{
return
path
.
resolve
(
__dirname
,
file
)
...
...
@@ -112,11 +112,11 @@ export default defineConfig({
vue
({
template
:
{
compilerOptions
:
{
isCustomElement
,
isCustomElement
:
isH5CustomElement
,
},
},
}),
vueJsx
({
optimize
:
true
,
isCustomElement
}),
vueJsx
({
optimize
:
true
,
isCustomElement
:
isH5CustomElement
}),
],
build
:
{
target
:
'
es2015
'
,
...
...
packages/uni-h5-vite/src/plugin/index.ts
浏览文件 @
d7463125
...
...
@@ -15,6 +15,7 @@ import { createDefine } from '../utils/features'
import
{
isSsr
}
from
'
../utils
'
import
{
ViteDevServer
}
from
'
vite
'
import
{
esbuildPrePlugin
}
from
'
./esbuild/esbuildPrePlugin
'
import
{
isH5CustomElement
,
isH5NativeTag
}
from
'
@dcloudio/uni-shared
'
const
external
=
[
'
@dcloudio/uni-app
'
,
...
...
@@ -40,6 +41,10 @@ export const UniH5Plugin: UniVitePlugin = {
transformEvent
:
{
tap
:
'
click
'
,
},
compilerOptions
:
{
isNativeTag
:
isH5NativeTag
,
isCustomElement
:
isH5CustomElement
,
},
},
config
(
config
,
env
)
{
if
(
isInHBuilderX
())
{
...
...
packages/uni-h5/dist/uni-h5.cjs.js
浏览文件 @
d7463125
此差异已折叠。
点击以展开。
packages/uni-h5/dist/uni-h5.es.js
浏览文件 @
d7463125
此差异已折叠。
点击以展开。
packages/uni-h5/vite.config.ts
浏览文件 @
d7463125
...
...
@@ -11,7 +11,7 @@ import vueJsx from '@vitejs/plugin-vue-jsx'
import
{
OutputChunk
}
from
'
rollup
'
import
{
stripOptions
}
from
'
@dcloudio/uni-cli-shared
'
import
{
isCustomElement
}
from
'
@dcloudio/uni-shared
'
import
{
is
H5
CustomElement
}
from
'
@dcloudio/uni-shared
'
import
{
genApiJson
}
from
'
./api
'
function
resolve
(
file
:
string
)
{
...
...
@@ -100,11 +100,11 @@ export default defineConfig({
vue
({
template
:
{
compilerOptions
:
{
isCustomElement
,
isCustomElement
:
isH5CustomElement
,
},
},
}),
vueJsx
({
optimize
:
true
,
isCustomElement
}),
vueJsx
({
optimize
:
true
,
isCustomElement
:
isH5CustomElement
}),
],
build
:
{
target
:
'
modules
'
,
// keep import.meta...
...
...
packages/uni-mp-compiler/__tests__/ref.spec.ts
0 → 100644
浏览文件 @
d7463125
import
{
assert
}
from
'
./testUtils
'
describe
(
'
compiler: transform ref
'
,
()
=>
{
test
(
'
vue-ref
'
,
()
=>
{
assert
(
`<custom/>`
,
`<custom class="vue-ref"/>`
,
`(_ctx, _cache) => {
return {}
}`
)
})
test
(
'
vue-ref-in-for
'
,
()
=>
{
assert
(
`<custom v-for="item in items"/>`
,
`<custom wx:for="{{a}}" wx:for-item="item" class="vue-ref-in-for"/>`
,
`(_ctx, _cache) => {
return { a: _vFor(_ctx.items, item => { return {}; }) }
}`
)
})
})
packages/uni-mp-compiler/__tests__/vSlot.spec.ts
浏览文件 @
d7463125
...
...
@@ -4,14 +4,14 @@ describe('compiler: transform v-slot', () => {
test
(
'
default slot
'
,
()
=>
{
assert
(
`<custom><template v-slot/></custom>`
,
`<custom vue-slots="{{['default']}}"><view /></custom>`
,
`<custom vue-slots="{{['default']}}"
class="vue-ref"
><view /></custom>`
,
`(_ctx, _cache) => {
return {}
}`
)
assert
(
`<custom>test</custom>`
,
`<custom vue-slots="{{['default']}}">test</custom>`
,
`<custom vue-slots="{{['default']}}"
class="vue-ref"
>test</custom>`
,
`(_ctx, _cache) => {
return {}
}`
...
...
@@ -20,7 +20,7 @@ describe('compiler: transform v-slot', () => {
test
(
'
named slots
'
,
()
=>
{
assert
(
`<custom><template v-slot:header/><template v-slot:default/><template v-slot:footer/></custom>`
,
`<custom vue-slots="{{['header','default','footer']}}"><view slot="header"/><view slot="default"/><view slot="footer"/></custom>`
,
`<custom vue-slots="{{['header','default','footer']}}"
class="vue-ref"
><view slot="header"/><view slot="default"/><view slot="footer"/></custom>`
,
`(_ctx, _cache) => {
return {}
}`
...
...
@@ -30,7 +30,7 @@ describe('compiler: transform v-slot', () => {
test
(
'
scoped slots
'
,
()
=>
{
assert
(
`<custom><template v-slot:default="slotProps"><view>{{ slotProps.item }}</view></template></custom>`
,
`<custom vue-slots="{{['default']}}"><view slot="default"><view>{{a}}</view></view></custom>`
,
`<custom vue-slots="{{['default']}}"
class="vue-ref"
><view slot="default"><view>{{a}}</view></view></custom>`
,
`(_ctx, _cache) => {
return { a: _toDisplayString(_ctx.slotProps.item), b: slotProps }
}`
...
...
packages/uni-mp-compiler/src/transforms/transformElement.ts
浏览文件 @
d7463125
...
...
@@ -62,25 +62,36 @@ function createClassAttribute(clazz: string): AttributeNode {
return
createAttributeNode
(
'
class
'
,
clazz
)
}
function
addS
copeId
(
node
:
ElementNode
,
scopeId
:
string
)
{
function
addS
taticClass
(
node
:
ElementNode
,
clazz
:
string
)
{
const
classProp
=
node
.
props
.
find
(
(
prop
)
=>
prop
.
type
===
NodeTypes
.
ATTRIBUTE
&&
prop
.
name
===
'
class
'
)
as
AttributeNode
|
undefined
if
(
!
classProp
)
{
return
node
.
props
.
unshift
(
createClassAttribute
(
scopeId
))
return
node
.
props
.
unshift
(
createClassAttribute
(
clazz
))
}
if
(
classProp
.
value
)
{
return
(
classProp
.
value
.
content
=
classProp
.
value
.
content
+
'
'
+
scopeId
)
return
(
classProp
.
value
.
content
=
classProp
.
value
.
content
+
'
'
+
clazz
)
}
classProp
.
value
=
{
type
:
NodeTypes
.
TEXT
,
loc
:
locStub
,
content
:
scopeId
,
content
:
clazz
,
}
}
function
addScopeId
(
node
:
ElementNode
,
scopeId
:
string
)
{
return
addStaticClass
(
node
,
scopeId
)
}
function
addVueRef
(
node
:
ElementNode
,
context
:
TransformContext
)
{
return
addStaticClass
(
node
,
context
.
scopes
.
vFor
?
'
vue-ref-in-for
'
:
'
vue-ref
'
)
}
function
processComponent
(
node
:
ElementNode
,
context
:
TransformContext
)
{
const
{
tag
}
=
node
if
(
context
.
bindingComponents
[
tag
])
{
...
...
@@ -122,6 +133,9 @@ function processComponent(node: ElementNode, context: TransformContext) {
)
)
}
addVueRef
(
node
,
context
)
// 3. user component (from setup bindings)
const
fromSetup
=
resolveSetupReference
(
tag
,
context
)
if
(
fromSetup
)
{
...
...
packages/vite-plugin-uni/src/index.ts
浏览文件 @
d7463125
...
...
@@ -85,12 +85,6 @@ export default function uniPlugin(
)
}
if
(
options
.
vueJsxOptions
)
{
plugins
.
push
(
require
(
'
../lib/plugin-vue-jsx/index
'
)(
initPluginVueJsxOptions
(
options
))
)
}
const
uniPlugins
=
initExtraPlugins
(
process
.
env
.
UNI_CLI_CONTEXT
||
process
.
cwd
(),
(
process
.
env
.
UNI_PLATFORM
as
UniApp
.
PLATFORM
)
||
'
h5
'
,
...
...
@@ -102,6 +96,14 @@ export default function uniPlugin(
options
.
copyOptions
=
uniPluginOptions
.
copyOptions
if
(
options
.
vueJsxOptions
)
{
plugins
.
push
(
require
(
'
../lib/plugin-vue-jsx/index
'
)(
initPluginVueJsxOptions
(
options
,
uniPluginOptions
.
compilerOptions
)
)
)
}
plugins
.
push
({
name
:
'
vite:uni
'
,
config
:
createConfig
(
options
,
uniPlugins
),
...
...
packages/vite-plugin-uni/src/vue/options.ts
浏览文件 @
d7463125
import
{
extend
,
hasOwn
,
isArray
,
isPlainObject
}
from
'
@vue/shared
'
import
{
TemplateCompiler
}
from
'
@vue/compiler-sfc
'
import
{
isCustomElement
}
from
'
@dcloudio/uni-shared
'
import
{
EXTNAME_VUE_RE
,
UniVitePlugin
,
...
...
@@ -103,14 +102,19 @@ export function initPluginVueOptions(
return
vueOptions
}
export
function
initPluginVueJsxOptions
(
options
:
VitePluginUniResolvedOptions
)
{
export
function
initPluginVueJsxOptions
(
options
:
VitePluginUniResolvedOptions
,
{
isCustomElement
,
}:
Required
<
Required
<
UniVitePlugin
>
[
'
uni
'
]
>
[
'
compilerOptions
'
]
)
{
const
vueJsxOptions
=
isPlainObject
(
options
.
vueJsxOptions
)
?
options
.
vueJsxOptions
:
(
options
.
vueJsxOptions
=
{})
if
(
!
hasOwn
(
vueJsxOptions
,
'
optimize
'
))
{
vueJsxOptions
.
optimize
=
true
}
vueJsxOptions
.
isCustomElement
=
isCustomElement
vueJsxOptions
.
isCustomElement
=
isCustomElement
as
(
tag
:
string
)
=>
boolean
return
vueJsxOptions
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录