Don't bundle large singular dependencies

This commit is contained in:
Fedor Indutny 2022-02-28 09:39:39 -08:00 committed by GitHub
parent 746f3618f3
commit c30af0032b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -28,23 +28,34 @@ const bundleDefaults = {
},
bundle: true,
external: [
// Native libraries
'@signalapp/signal-client',
'@signalapp/signal-client/zkgroup',
'backbone',
'better-sqlite3',
'electron',
'fs-xattr',
'fsevents',
'got',
'jquery',
'mac-screen-capture-permissions',
'node-fetch',
'sass',
'pino',
'proxy-agent',
'ringrtc',
'sass',
'sharp',
'websocket',
'electron',
// Things that don't bundle well
'backbone',
'got',
'jquery',
'node-fetch',
'pino',
'proxy-agent',
// Large libraries (3.7mb total)
// See: https://esbuild.github.io/api/#analyze
'emoji-datasource',
'fabric',
'google-libphonenumber',
'moment',
'quill',
// Uses fast-glob and dynamic requires
'./preload_test',