@weapp-vite/web 1.5.6 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +22 -0
- package/dist/css/wxss.mjs +2 -1
- package/dist/css/wxss.mjs.map +1 -1
- package/dist/index.d.mts +2 -1
- package/dist/index.mjs +2 -1
- package/dist/plugin/hostTypes.d.mts +74 -0
- package/dist/plugin/index.d.mts +2 -74
- package/dist/plugin/index.mjs +9 -2
- package/dist/plugin/index.mjs.map +1 -1
- package/dist/plugin/sfcHmr.mjs +19 -0
- package/dist/plugin/sfcHmr.mjs.map +1 -0
- package/dist/plugin/vueSfc.mjs +12 -9
- package/dist/plugin/vueSfc.mjs.map +1 -1
- package/dist/runtime/appStyle.mjs +25 -0
- package/dist/runtime/appStyle.mjs.map +1 -0
- package/dist/runtime/component/element.mjs +39 -19
- package/dist/runtime/component/element.mjs.map +1 -1
- package/dist/runtime/component/events.mjs +34 -3
- package/dist/runtime/component/events.mjs.map +1 -1
- package/dist/runtime/component/publicInstance.mjs +7 -3
- package/dist/runtime/component/publicInstance.mjs.map +1 -1
- package/dist/runtime/component/state.mjs +7 -0
- package/dist/runtime/component/state.mjs.map +1 -1
- package/dist/runtime/component/types.d.mts +2 -0
- package/dist/runtime/component/utils.mjs +23 -3
- package/dist/runtime/component/utils.mjs.map +1 -1
- package/dist/runtime/componentEvents.mjs +37 -0
- package/dist/runtime/componentEvents.mjs.map +1 -0
- package/dist/runtime/eventBinding.mjs +5 -2
- package/dist/runtime/eventBinding.mjs.map +1 -1
- package/dist/runtime/index.d.mts +2 -1
- package/dist/runtime/index.mjs +2 -1
- package/dist/runtime/index.mjs.map +1 -1
- package/dist/runtime/legacyTemplate/dom.mjs +2 -7
- package/dist/runtime/legacyTemplate/dom.mjs.map +1 -1
- package/dist/runtime/nativeComponents/canvas/index.mjs +12 -3
- package/dist/runtime/nativeComponents/canvas/index.mjs.map +1 -1
- package/dist/runtime/polyfill/index.d.mts +2 -1
- package/dist/runtime/polyfill/index.mjs +15 -1
- package/dist/runtime/polyfill/index.mjs.map +1 -1
- package/dist/runtime/polyfill/routeRuntime/dom.mjs +5 -0
- package/dist/runtime/polyfill/routeRuntime/dom.mjs.map +1 -1
- package/dist/runtime/polyfill/routeRuntime/events.d.mts +29 -0
- package/dist/runtime/polyfill/routeRuntime/events.mjs +123 -0
- package/dist/runtime/polyfill/routeRuntime/events.mjs.map +1 -0
- package/dist/runtime/polyfill/routeRuntime/history.d.mts +3 -1
- package/dist/runtime/polyfill/routeRuntime/history.mjs +4 -1
- package/dist/runtime/polyfill/routeRuntime/history.mjs.map +1 -1
- package/dist/runtime/polyfill/routeRuntime/lifecycle.mjs +9 -0
- package/dist/runtime/polyfill/routeRuntime/lifecycle.mjs.map +1 -1
- package/dist/runtime/polyfill/routeRuntime/options.mjs.map +1 -1
- package/dist/runtime/polyfill/routeRuntime/scroll.mjs +20 -3
- package/dist/runtime/polyfill/routeRuntime/scroll.mjs.map +1 -1
- package/dist/runtime/polyfill/routeRuntime/stack.mjs +60 -19
- package/dist/runtime/polyfill/routeRuntime/stack.mjs.map +1 -1
- package/dist/runtime/polyfill/routeRuntime.d.mts +1 -1
- package/dist/runtime/polyfill/routeRuntime.mjs +32 -12
- package/dist/runtime/polyfill/routeRuntime.mjs.map +1 -1
- package/dist/runtime/polyfill.d.mts +2 -1
- package/dist/runtime/renderContext.mjs +3 -2
- package/dist/runtime/renderContext.mjs.map +1 -1
- package/dist/runtime/wevu.mjs +2 -0
- package/dist/runtime/wevu.mjs.map +1 -1
- package/dist/shared/wxml.mjs +5 -1
- package/dist/shared/wxml.mjs.map +1 -1
- package/package.json +14 -12
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@weapp-vite/web",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "2.0.0",
|
|
5
5
|
"description": "Experimental web runtime for weapp-vite templates",
|
|
6
6
|
"author": "ice breaker <1324318532@qq.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"dist"
|
|
53
53
|
],
|
|
54
54
|
"engines": {
|
|
55
|
-
"node": "^
|
|
55
|
+
"node": "^22.18.0 || ^24.11.0 || >=26.0.0"
|
|
56
56
|
},
|
|
57
57
|
"tsd": {
|
|
58
58
|
"compilerOptions": {
|
|
@@ -62,22 +62,23 @@
|
|
|
62
62
|
}
|
|
63
63
|
},
|
|
64
64
|
"dependencies": {
|
|
65
|
-
"@babel/parser": "^8.0.
|
|
66
|
-
"@babel/traverse": "^8.0.
|
|
65
|
+
"@babel/parser": "^8.0.7",
|
|
66
|
+
"@babel/traverse": "^8.0.7",
|
|
67
67
|
"@babel/types": "^8.0.6",
|
|
68
|
-
"@weapp-core/constants": "0.
|
|
69
|
-
"@weapp-core/shared": "3.2.
|
|
68
|
+
"@weapp-core/constants": "0.3.1",
|
|
69
|
+
"@weapp-core/shared": "3.2.8",
|
|
70
70
|
"domhandler": "^6.0.1",
|
|
71
71
|
"esbuild": "^0.28.2",
|
|
72
72
|
"htmlparser2": "^12.0.0",
|
|
73
73
|
"lit": "^3.3.3",
|
|
74
|
-
"magic-string": "^1.4.
|
|
74
|
+
"magic-string": "^1.4.3",
|
|
75
75
|
"pathe": "^2.0.3",
|
|
76
|
-
"postcss": "^8.5.
|
|
76
|
+
"postcss": "^8.5.29",
|
|
77
77
|
"postcss-selector-parser": "^7.1.6",
|
|
78
|
-
"rolldown": "1.2.
|
|
79
|
-
"rolldown-require": "2.0.
|
|
80
|
-
"
|
|
78
|
+
"rolldown": "1.2.13",
|
|
79
|
+
"rolldown-require": "2.0.35",
|
|
80
|
+
"vite": "8.3.4",
|
|
81
|
+
"wevu": "7.5.0"
|
|
81
82
|
},
|
|
82
83
|
"devDependencies": {
|
|
83
84
|
"happy-dom": "^20.14.5"
|
|
@@ -93,7 +94,8 @@
|
|
|
93
94
|
"test": "vitest run",
|
|
94
95
|
"test:coverage": "cross-env WEAPP_VITE_WEB_COVERAGE_STRICT=1 vitest run --coverage",
|
|
95
96
|
"test:dev": "vitest",
|
|
96
|
-
"test:types": "pnpm build &&
|
|
97
|
+
"test:types": "pnpm build && pnpm run test:types:check",
|
|
98
|
+
"test:types:check": "tsd --files \"test-d/**/*.test-d.ts\"",
|
|
97
99
|
"typecheck": "tsc --noEmit"
|
|
98
100
|
}
|
|
99
101
|
}
|