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,
|
||||
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',
|
||||
|
|
Loading…
Reference in a new issue