mirror of
https://github.com/SableClient/Sable.git
synced 2026-12-02 14:52:32 -08:00
fix: remove invalid global polyfill
This commit is contained in:
2 files changed
+3
-16
No files matched your search
@@ -275,12 +275,12 @@ const buildClient = async (session: Session): Promise<MatrixClient> => {
|
||||
const storeName = getSessionStoreName(session);
|
||||
|
||||
const indexedDBStore = new IndexedDBStore({
|
||||
indexedDB: global.indexedDB,
|
||||
localStorage: global.localStorage,
|
||||
indexedDB: globalThis.indexedDB,
|
||||
localStorage: globalThis.localStorage,
|
||||
dbName: storeName.sync,
|
||||
});
|
||||
|
||||
const legacyCryptoStore = new IndexedDBCryptoStore(global.indexedDB, storeName.crypto);
|
||||
const legacyCryptoStore = new IndexedDBCryptoStore(globalThis.indexedDB, storeName.crypto);
|
||||
|
||||
const mx = createClient({
|
||||
baseUrl: session.baseUrl,
|
||||
|
||||
@@ -7,7 +7,6 @@ import svgr from 'vite-plugin-svgr';
|
||||
import { wasm } from '@rollup/plugin-wasm';
|
||||
import { viteStaticCopy } from 'vite-plugin-static-copy';
|
||||
import { vanillaExtractPlugin } from '@vanilla-extract/vite-plugin';
|
||||
import { NodeGlobalsPolyfillPlugin } from '@esbuild-plugins/node-globals-polyfill';
|
||||
import * as injectModule from '@rollup/plugin-inject';
|
||||
import * as topLevelAwaitModule from 'vite-plugin-top-level-await';
|
||||
import type { Options as TopLevelAwaitOptions } from 'vite-plugin-top-level-await';
|
||||
@@ -220,18 +219,6 @@ export default defineConfig(({ command }) => ({
|
||||
'@vanilla-extract/recipes/createRuntimeFn',
|
||||
],
|
||||
needsInterop: ['matrix-widget-api'],
|
||||
rolldownOptions: {
|
||||
define: {
|
||||
global: 'globalThis',
|
||||
},
|
||||
plugins: [
|
||||
// Enable esbuild polyfill plugins
|
||||
NodeGlobalsPolyfillPlugin({
|
||||
process: false,
|
||||
buffer: true,
|
||||
}),
|
||||
],
|
||||
},
|
||||
},
|
||||
build: {
|
||||
outDir: 'dist',
|
||||
|
||||
Reference in new issue
Block a user