diff --git a/packages/core/package.json b/packages/core/package.json
index c7cc183f5..6f604df54 100644
--- a/packages/core/package.json
+++ b/packages/core/package.json
@@ -1,6 +1,6 @@
{
"name": "@web3-onboard/core",
- "version": "2.7.0-alpha.3",
+ "version": "2.7.0-alpha.4",
"description": "Web3-Onboard makes it simple to connect Ethereum hardware and software wallets to your dapp. Features standardized spec compliant web3 providers for all supported wallets, framework agnostic modern javascript UI with code splitting, CSS customization, multi-chain and multi-account support, reactive wallet state subscriptions and real-time transaction state change notifications.",
"keywords": [
"Ethereum",
diff --git a/packages/core/src/views/Index.svelte b/packages/core/src/views/Index.svelte
index 4ee459635..77bc4d4ec 100644
--- a/packages/core/src/views/Index.svelte
+++ b/packages/core/src/views/Index.svelte
@@ -5,8 +5,6 @@
import Connect from './connect/Index.svelte'
import SwitchChain from './chain/SwitchChain.svelte'
import ActionRequired from './connect/ActionRequired.svelte'
- import AccountCenter from './account-center/Index.svelte'
- import Notify from './notify/Index.svelte'
import { configuration } from '../configuration'
import type { Observable } from 'rxjs'
import type { Notification } from '../types'
@@ -43,6 +41,14 @@
}
}
+ const accountCenterComponent = $accountCenter$.enabled
+ ? import('./account-center/Index.svelte').then(mod => mod.default)
+ : Promise.resolve(null)
+
+ const notifyComponent = $notify$.enabled
+ ? import('./notify/Index.svelte').then(mod => mod.default)
+ : Promise.resolve(null)
+
$: sharedContainer =
$accountCenter$.enabled &&
$notify$.enabled &&
@@ -359,11 +365,16 @@
: ''} "
>
{#if $notify$.position.includes('bottom') && $accountCenter$.position.includes('bottom') && samePositionOrMobile}
-