Skip to content

A free and open source instant messaging and VoIP chat app built for friends, groups, and communities.

TypeScript fluxerfluxerapp

fix(app): keep a global define from breaking bundled modules (#3287)

Hampus39e48458da13
diff --git a/fluxer_app/rspack.config.mjs b/fluxer_app/rspack.config.mjs
index 25c760d2a..de0d5e323 100644
--- a/fluxer_app/rspack.config.mjs
+++ b/fluxer_app/rspack.config.mjs
@@ -671,6 +671,7 @@ export default () => {
wasmCratesDir: path.join(ROOT_DIR, 'rust'),
}),
new DefinePlugin({
+ define: 'undefined',
__FLUXER_PRECACHE_MANIFEST__: JSON.stringify([]),
__FLUXER_SW_VERSION__: JSON.stringify(publicValues.PUBLIC_BUILD_VERSION || 'dev'),
'process.env.NODE_ENV': JSON.stringify(mode),