Skip to content

Commit 3254994

Browse files
committed
fix: fix rollup problem not exporting Vue as the default element. So using NS-vue from TS is harder
1 parent 259640e commit 3254994

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

platform/nativescript/framework.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,4 +71,10 @@ global.__onLiveSyncCore = () => {
7171
}
7272
}
7373

74+
// Fix a rollup problem which does not define
75+
// module.export.default = Vue
76+
// so a `import Vue from 'nativescript-vue'` will
77+
// fail from a Typescript file
78+
Vue.default = Vue
79+
7480
export default Vue

0 commit comments

Comments
 (0)