fix: remove invalid global polyfill

This commit is contained in:
hazre committed 2026-04-19 13:50:36 +02:00
1 parent 1d6d0a510f
commit e11810ae5d
2 files changed
+3 -16

No files matched your search

+3 -3
View File
@@ -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,
-13
View File
@@ -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',