1
0
Fork 0

chore: Generate bundle specific for running tests

This commit is contained in:
Joost De Cock 2022-06-14 23:14:30 +02:00
parent f70c0a5f62
commit 68589d023c
77 changed files with 923 additions and 0 deletions

View file

@ -40,4 +40,16 @@ let result
const info = await esbuild.analyzeMetafile(result.metafile)
console.log(info)
}
// Also build a version that has all dependencies bundled
// This makes it easy to run tests
await esbuild
.build({
...options,
outfile: 'tests/dist/index.mjs',
format: 'esm',
external: [],
})
.catch(() => process.exit(1))
})()