Don't bundle large singular dependencies
This commit is contained in:
parent
746f3618f3
commit
c30af0032b
1 changed files with 19 additions and 8 deletions
|
@ -28,23 +28,34 @@ const bundleDefaults = {
|
||||||
},
|
},
|
||||||
bundle: true,
|
bundle: true,
|
||||||
external: [
|
external: [
|
||||||
|
// Native libraries
|
||||||
'@signalapp/signal-client',
|
'@signalapp/signal-client',
|
||||||
'@signalapp/signal-client/zkgroup',
|
'@signalapp/signal-client/zkgroup',
|
||||||
'backbone',
|
|
||||||
'better-sqlite3',
|
'better-sqlite3',
|
||||||
|
'electron',
|
||||||
'fs-xattr',
|
'fs-xattr',
|
||||||
'fsevents',
|
'fsevents',
|
||||||
'got',
|
|
||||||
'jquery',
|
|
||||||
'mac-screen-capture-permissions',
|
'mac-screen-capture-permissions',
|
||||||
'node-fetch',
|
|
||||||
'sass',
|
|
||||||
'pino',
|
|
||||||
'proxy-agent',
|
|
||||||
'ringrtc',
|
'ringrtc',
|
||||||
|
'sass',
|
||||||
'sharp',
|
'sharp',
|
||||||
'websocket',
|
'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
|
// Uses fast-glob and dynamic requires
|
||||||
'./preload_test',
|
'./preload_test',
|
||||||
|
|
Loading…
Reference in a new issue