Skip to content

Commit f36d462

Browse files
committed
fix(build): add buble as otherwise static bindings fail to generate
1 parent d3c59d4 commit f36d462

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

build/config.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
const alias = require('rollup-plugin-alias')
22
const commonjs = require('rollup-plugin-commonjs')
33
const resolve = require('rollup-plugin-node-resolve')
4+
const buble = require('rollup-plugin-buble')
45
const replace = require('rollup-plugin-replace')
56
const flow = require('rollup-plugin-flow-no-whitespace')
67
const path = require('path')
@@ -77,6 +78,7 @@ const genConfig = (name) => {
7778
'process.env.NS_VUE_VERSION': `'${NSVueVersion}'`
7879
}),
7980
flow(),
81+
buble(),
8082
alias(aliases),
8183
resolve(),
8284
commonjs(),

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@
6868
"prettier": "^1.10.2",
6969
"rollup": "^0.62.0",
7070
"rollup-plugin-alias": "^1.4.0",
71+
"rollup-plugin-buble": "^0.19.2",
7172
"rollup-plugin-commonjs": "^9.1.3",
7273
"rollup-plugin-flow-no-whitespace": "^1.0.0",
7374
"rollup-plugin-node-resolve": "^3.3.0",
@@ -76,7 +77,7 @@
7677
"rollup-watch": "^4.3.1",
7778
"semver": "^5.5.0",
7879
"set-value": "^2.0.0",
79-
"tns-core-modules": "4.1.0",
80+
"tns-core-modules": "4.2.0",
8081
"util-inspect": "^0.1.8",
8182
"vue": "^2.5.17"
8283
},

platform/nativescript/runtime/components/frame.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -105,11 +105,11 @@ export default {
105105
return result
106106
},
107107

108-
async notifyPageMounted(pageVm) {
109-
await this.$nextTick()
110-
111-
this.navigate({
112-
create: () => pageVm.$el.nativeView
108+
notifyPageMounted(pageVm) {
109+
this.$nextTick(() => {
110+
this.navigate({
111+
create: () => pageVm.$el.nativeView
112+
})
113113
})
114114
},
115115

0 commit comments

Comments
 (0)