mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 20:26:24 +00:00
Include code cache for preload bundle
Co-authored-by: Scott Nonnenberg <scott@signal.org>
This commit is contained in:
@@ -103,12 +103,15 @@ async function main() {
|
||||
...nodeDefaults,
|
||||
format: 'cjs',
|
||||
mainFields: ['browser', 'main'],
|
||||
entryPoints: glob
|
||||
.sync('{app,ts}/**/*.{ts,tsx}', {
|
||||
nodir: true,
|
||||
root: ROOT_DIR,
|
||||
})
|
||||
.filter(file => !file.endsWith('.d.ts')),
|
||||
entryPoints: [
|
||||
'preload.wrapper.ts',
|
||||
...glob
|
||||
.sync('{app,ts}/**/*.{ts,tsx}', {
|
||||
nodir: true,
|
||||
root: ROOT_DIR,
|
||||
})
|
||||
.filter(file => !file.endsWith('.d.ts')),
|
||||
],
|
||||
outdir: path.join(ROOT_DIR),
|
||||
},
|
||||
preloadConfig: {
|
||||
|
||||
Reference in New Issue
Block a user