Skip to content

Commit 2556a7e

Browse files
committed
working around a vue + typescript issue I can't solve
1 parent c7b0087 commit 2556a7e

File tree

3 files changed

+1813
-2033
lines changed

3 files changed

+1813
-2033
lines changed

fixtures/vuejs3-typescript/App.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
<template>
22
<div id="app">
3-
<img src="./assets/logo.png">
3+
<img :src="logoPath">
44
<hello></hello>
55
</div>
66
</template>
77

88
<script lang="ts">
99
import Hello from './components/Hello.vue'
10+
import logoPath from './assets/logo.png';
1011
1112
class TestClassSyntax {
1213
@@ -16,6 +17,9 @@ export default {
1617
name: 'app',
1718
components: {
1819
Hello
20+
},
21+
computed: {
22+
logoPath: () => logoPath
1923
}
2024
}
2125
</script>

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@
9696
"ts-loader": "^8.0.1 || ^9.0.0",
9797
"typescript": ">=3.7.2",
9898
"vue": "^3.0.2",
99-
"vue-loader": "16.6.0",
99+
"vue-loader": "^16.1.0",
100100
"vue-template-compiler": "^2.5",
101101
"webpack-notifier": "^1.6.0",
102102
"zombie": "^6.1.4"

0 commit comments

Comments
 (0)