Include code cache for preload bundle

Co-authored-by: Scott Nonnenberg <scott@signal.org>
This commit is contained in:
Fedor Indutny 2024-09-08 14:09:57 -07:00 committed by GitHub
parent 3c9332449f
commit 695f64a55a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 230 additions and 11 deletions

View file

@ -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: {