Skip to content

Commit

Permalink
fix: parsing errors occur when using ts syntax in the template
Browse files Browse the repository at this point in the history
  • Loading branch information
zcf0508 committed Apr 29, 2024
1 parent 10322e8 commit 96cb070
Show file tree
Hide file tree
Showing 4 changed files with 104 additions and 18 deletions.
9 changes: 9 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,15 @@
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "chrome",
"request": "launch",
"name": "dev-in-chrome",
"url": "http://localhost:3000",
"webRoot": "${workspaceFolder}",
"sourceMaps": true,
"runtimeArgs": ["--remote-debugging-port=9232"]
},
{
"name": "Extension",
"type": "extensionHost",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"@babel/parser": "^7.22.5",
"@babel/traverse": "^7.22.5",
"@babel/types": "^7.22.5",
"@vue/compiler-sfc": "^3.3.4"
"@vue/compiler-sfc": "^3.4.25"
},
"devDependencies": {
"@antfu/eslint-config": "^2.8.0",
Expand Down
107 changes: 92 additions & 15 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions test/setup-block/TestComponent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ onMounted(() => {
<div>
<input v-model="lmsg" />
<div>{{ `path: ${path}` }}</div>
{{ data.name }} / {{ age }}
<input :value="data.name" @input="updateName" />
{{ age }}
<input :value="data['name' as string]" @input="updateName" />
<button @click="addAge"></button>
</div>
</template>
Expand Down

0 comments on commit 96cb070

Please sign in to comment.