Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9beb454

Browse files
committed
migration: remove @vue/compat and switch to Vue 3 proper
1 parent758961e commit9beb454

File tree

5 files changed

+3
-27
lines changed

5 files changed

+3
-27
lines changed

‎package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
"dependencies": {
1212
"firebase":"4.6.2",
1313
"vue":"^3.1.0",
14-
"@vue/compat":"^3.1.0",
1514
"vue-router":"^4.0.0",
1615
"vuex":"^4.0.0"
1716
},

‎src/App.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<router-linkto="/show">Show</router-link>
1111
<router-linkto="/ask">Ask</router-link>
1212
<router-linkto="/job">Jobs</router-link>
13-
<aclass="github"href="https://github.com/vuejs/vue-hackernews-2.0"target="_blank"rel="noopener">
13+
<aclass="github"href="https://github.com/vuejs/vue-hackernews-2.0/tree/migration"target="_blank"rel="noopener">
1414
Built with Vue.js
1515
</a>
1616
</nav>

‎src/main.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
1-
import{createApp,configureCompat}from'vue'
1+
import{createApp}from'vue'
22
import{createStore}from'./store'
33
import{createRouter}from'./router'
44
importtitleMixinfrom'./util/title'
55
importAppfrom'./App.vue'
66
importProgressBarfrom'./components/ProgressBar.vue'
77

8-
configureCompat({
9-
MODE:3
10-
})
11-
128
constrouter=createRouter()
139
conststore=createStore(router)
1410

‎src/views/CreateListView.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@ const camelize = str => str.charAt(0).toUpperCase() + str.slice(1)
88
// They are essentially higher order components wrapping ItemList.vue.
99
exportdefaultfunctioncreateListView(type){
1010
return{
11-
compatConfig:{
12-
MODE:3
13-
},
14-
1511
name:`${type}-stories-view`,
1612

1713
asyncData({ store}){

‎vite.config.js

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,5 @@ import createVuePlugin from '@vitejs/plugin-vue'
33

44
// https://vitejs.dev/config/
55
exportdefaultdefineConfig({
6-
resolve:{
7-
alias:{
8-
vue:'@vue/compat'
9-
}
10-
},
11-
plugins:[
12-
createVuePlugin({
13-
template:{
14-
compilerOptions:{
15-
compatConfig:{
16-
MODE:3
17-
}
18-
}
19-
}
20-
})
21-
]
6+
plugins:[createVuePlugin()]
227
})

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp