Skip to content

Commit

Permalink
fix(build): Disable async components with Vite
Browse files Browse the repository at this point in the history
Signed-off-by: Christoph Wurst <[email protected]>
  • Loading branch information
ChristophWurst committed Nov 25, 2024
1 parent a94118b commit f0800ef
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/components/NavigationAccount.vue
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ import { formatFileSize } from '@nextcloud/files'
import { generateUrl } from '@nextcloud/router'
import { Fragment } from 'vue-frag'

import AccountSettings from './AccountSettings.vue'
import logger from '../logger.js'
import { fetchQuota } from '../service/AccountService.js'
import IconInfo from 'vue-material-design-icons/Information.vue'
Expand All @@ -108,7 +109,7 @@ export default {
ActionCheckbox,
ActionInput,
ActionText,
AccountSettings: () => import(/* webpackChunkName: "account-settings" */ './AccountSettings.vue'),
AccountSettings,
IconInfo,
IconSettings,
IconFolderAdd,
Expand Down
4 changes: 2 additions & 2 deletions src/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import Vue from 'vue'
import Router from 'vue-router'
import { generateUrl } from '@nextcloud/router'

const Home = () => import('./views/Home.vue')
const Setup = () => import('./views/Setup.vue')
import Home from './views/Home.vue'
import Setup from './views/Setup.vue'

Vue.use(Router)

Expand Down
3 changes: 2 additions & 1 deletion src/views/Home.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import { testAccountConnection } from '../service/AccountService.js'
import logger from '../logger.js'
import MailboxThread from '../components/MailboxThread.vue'
import Navigation from '../components/Navigation.vue'
import NewMessageModal from '../components/NewMessageModal.vue'
import Outbox from '../components/Outbox.vue'
import ComposerSessionIndicator from '../components/ComposerSessionIndicator.vue'
import { mapGetters } from 'vuex'
Expand All @@ -38,7 +39,7 @@ export default {
NcContent,
MailboxThread,
Navigation,
NewMessageModal: () => import(/* webpackChunkName: "new-message-modal" */ '../components/NewMessageModal.vue'),
NewMessageModal,
Outbox,
ComposerSessionIndicator,
},
Expand Down

0 comments on commit f0800ef

Please sign in to comment.