Skip to content

Commit 64fd9af

Browse files
committed
Ensure main.native.js ends with semicolon in order to pass the tslint if we have a TS app.
1 parent 2df5c67 commit 64fd9af

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

generator/templates/simple/src/main.native.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
extend: '@vue/cli-service/generator/template/src/main.js'
33
replace:
44
- !!js/regexp /import Vue from 'vue'/
5+
- !!js/regexp /import App from './App.vue'/
56
- !!js/regexp /Vue.config.productionTip = false/
67
- !!js/regexp /h => h\(App\),/
78
- !!js/regexp /}\)\.\$mount\('#app'\)/
@@ -11,6 +12,10 @@ replace:
1112
import Vue from 'nativescript-vue';
1213
<%# END_REPLACE %>
1314

15+
<%# REPLACE %>
16+
import App from './App.vue';
17+
<%# END_REPLACE %>
18+
1419
<%# REPLACE %>
1520
// Set the following to `true` to hide the logs created by nativescript-vue
1621
Vue.config.silent = false;

0 commit comments

Comments
 (0)