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

Commit920cdf0

Browse files
authored
Merge pull request#6 from cexbrayat/fix/create-app
feat: support Vue 3.0.0-alpha.4
2 parents156e62c +e0f4903 commit920cdf0

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
import{createApp}from'vue';
22
importAppfrom'./App.vue';
33

4-
createApp().mount(App,'#app');
4+
createApp(App).mount('#app');

‎generator/codemods/rfc09-global-api/transformMount.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ module.exports = function transformMount(j, root) {
2626

2727
returnj.callExpression(
2828
j.memberExpression(
29-
j.callExpression(j.identifier('createApp'),[]),
29+
j.callExpression(j.identifier('createApp'),[options]),
3030
j.identifier('mount')
3131
),
32-
[options,el]
32+
[el]
3333
)
3434
})
3535

‎generator/template/src/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
import{createApp}from'vue'
22
importAppfrom'./App.vue'
33

4-
createApp().mount(App,'#app')
4+
createApp(App).mount('#app')

‎package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
"vue-loader":"^16.0.0-alpha.1"
1717
},
1818
"peerDependencies": {
19-
"@vue/compiler-sfc":"^3.0.0-alpha.1",
20-
"vue":"^3.0.0-alpha.1"
19+
"@vue/compiler-sfc":"^3.0.0-alpha.4",
20+
"vue":"^3.0.0-alpha.4"
2121
},
2222
"devDependencies": {
2323
"jest":"^24.9.0",

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp