mirror of
https://github.com/dergigi/boris.git
synced 2026-02-21 23:14:34 +01:00
build: deep import EventStore to bypass re-export resolution on Vercel
- Import EventStore from applesauce-core/dist/event-store/event-store.js - Add TS module declaration shim for deep import typing - No functional changes, fixes Vercel bundling for async-event-store.js
This commit is contained in:
@@ -3,7 +3,7 @@ import { BrowserRouter, Routes, Route, Navigate } from 'react-router-dom'
|
||||
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
|
||||
import { faSpinner } from '@fortawesome/free-solid-svg-icons'
|
||||
import { EventStoreProvider, AccountsProvider, Hooks } from 'applesauce-react'
|
||||
import { EventStore } from 'applesauce-core'
|
||||
import { EventStore } from 'applesauce-core/dist/event-store/event-store.js'
|
||||
import { AccountManager } from 'applesauce-accounts'
|
||||
import { registerCommonAccountTypes } from 'applesauce-accounts/accounts'
|
||||
import { RelayPool } from 'applesauce-relay'
|
||||
|
||||
6
src/types/applesauce-core-deep.d.ts
vendored
Normal file
6
src/types/applesauce-core-deep.d.ts
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
declare module 'applesauce-core/dist/event-store/event-store.js' {
|
||||
// Re-export the EventStore type from the main package so TS has correct types
|
||||
export { EventStore } from 'applesauce-core';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user