Include code cache for preload bundle
Co-authored-by: Scott Nonnenberg <scott@signal.org>
This commit is contained in:
parent
3c9332449f
commit
695f64a55a
13 changed files with 230 additions and 11 deletions
|
@ -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: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue