build: compile as esm (#888)

This commit is contained in:
Michael Kriese 2024-11-08 16:32:08 +01:00 committed by GitHub
parent 4a407be28a
commit e8fc25c747
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 14 additions and 7 deletions

View file

@ -9,6 +9,7 @@ await build({
minify: !!env['CI'],
tsconfig: 'tsconfig.dist.json',
sourcemap: true,
// format: 'esm', // TODO: later PR
format: 'esm',
outdir: './dist/',
inject: ['tools/cjs-shim.ts'], // https://github.com/evanw/esbuild/issues/1921#issuecomment-1898197331
});