Skip to content

Commit 684640a

Browse files
committed
fix(app-vite): entry file on specific scenarios
1 parent 7a00c30 commit 684640a

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

app-vite/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@quasar/app-vite",
3-
"version": "3.0.0-beta.1",
3+
"version": "3.0.0-beta.2",
44
"description": "Quasar Framework App CLI with Vite",
55
"keywords": [
66
"cli",

app-vite/templates/entry/app.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,14 @@ import { Quasar } from 'quasar'
3030
import { markRaw } from 'vue'
3131
import <%= quasarConf.metaConf.needsAppMountHook ? 'AppComponent' : 'RootComponent' %> from 'app/<%= quasarConf.sourceFiles.rootComponent %>'
3232

33-
<% if (quasarConf.metaConf.hasStore) { %>import createStore from 'app/<%= quasarConf.sourceFiles.store %>'<% } %>
33+
<% if (quasarConf.metaConf.hasStore) { %>
34+
import createStore from 'app/<%= quasarConf.sourceFiles.store %>'
35+
<% } %>
3436
import createRouter from 'app/<%= quasarConf.sourceFiles.router %>'
3537

3638
<% if (quasarConf.metaConf.needsAppMountHook) { %>
3739
import { defineComponent, h, onMounted<%= quasarConf.ctx.mode.ssr && quasarConf.ssr.manualPostHydrationTrigger !== true ? ', getCurrentInstance' : '' %> } from 'vue'
40+
3841
const RootComponent = defineComponent({
3942
name: 'AppWrapper',
4043
setup (props) {

0 commit comments

Comments
 (0)