Skip to content

Commit e2d2fff

Browse files
committed
feat(compiler): support key for v-for
1 parent ac3c056 commit e2d2fff

File tree

11 files changed

+994
-675
lines changed

11 files changed

+994
-675
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@
138138
"@vue-vapor/shared": "3.20240702.0-b44ca85",
139139
"@vue-vapor/vue": "3.20240702.0-b44ca85",
140140
"html-tags": "^4.0.0",
141+
"magic-string-stack": "^0.1.1",
141142
"source-map-js": "^1.2.0",
142143
"svg-tags": "^1.0.0",
143144
"unplugin": "^1.11.0"

playground/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,13 @@
66
"dev": "nodemon -w '../../src/**/*.ts' -e .ts -x vite --port 5174"
77
},
88
"dependencies": {
9-
"unplugin-vue-macros": "^2.9.5",
10-
"vite-plugin-vue-devtools": "^7.3.4",
119
"vue": "npm:@vue-vapor/[email protected]"
1210
},
1311
"devDependencies": {
1412
"@vitejs/plugin-vue": "^5.0.5",
1513
"@vue-macros/volar": "^0.23.0",
1614
"unplugin-vue-jsx-vapor": "workspace:*",
15+
"unplugin-vue-macros": "^2.11.5",
1716
"vite": "^5.3.2",
1817
"vite-plugin-inspect": "^0.8.4"
1918
}

playground/vite.config.ts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,16 @@ import { defineConfig } from 'vite'
22
import Inspect from 'vite-plugin-inspect'
33
import Vue from '@vitejs/plugin-vue'
44
import VueMacros from 'unplugin-vue-macros/vite'
5-
import Devtools from 'vite-plugin-vue-devtools'
65
import VueJsxVapor from '../src/vite'
76

87
export default defineConfig({
9-
plugins: [Vue(), VueJsxVapor(), VueMacros(), Inspect(), Devtools()],
8+
plugins: [
9+
VueMacros({
10+
plugins: {
11+
vue: Vue(),
12+
vueJsx: VueJsxVapor(),
13+
},
14+
}),
15+
Inspect(),
16+
],
1017
})

0 commit comments

Comments
 (0)