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

Commit7335fd0

Browse files
committed
fix: don't import Vue in utils
fixes nativescript-vue-template-compiler build
1 parent1cf4858 commit7335fd0

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

‎platform/nativescript/framework.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ import NavigatorPlugin from './plugins/navigator-plugin'
1313
// import DecoderPlugin from './plugins/decoder-plugin'
1414
importRouterPluginfrom'./plugins/router-plugin'
1515

16+
import{setVue}from'./util'
17+
setVue(Vue)
18+
1619
Vue.use(ModalPlugin)
1720
Vue.use(NavigatorPlugin)
1821
// Vue.use(DecoderPlugin)

‎platform/nativescript/util/index.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
import{makeMap,once}from'shared/util'
22
import{isKnownView,getViewMeta}from'../element-registry'
3-
importVuefrom'../framework'
43

54
exportconstisReservedTag=makeMap('template',true)
65

6+
let_Vue
7+
8+
exportfunctionsetVue(Vue){
9+
_Vue=Vue
10+
}
11+
712
exportconstcanBeLeftOpenTag=function(el){
813
returngetViewMeta(el).canBeLeftOpenTag
914
}
@@ -42,7 +47,7 @@ const infoTrace = once(() => {
4247
})
4348

4449
exportfunctiontrace(message){
45-
if(Vue.config.silent){
50+
if(_Vue&&_Vue.config.silent){
4651
returninfoTrace()
4752
}
4853

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp