fix: add cjs shim

This commit is contained in:
Michael Kriese 2024-11-08 16:28:54 +01:00
parent 1544d86fa0
commit 161f5b4092
No known key found for this signature in database
GPG key ID: F8D7748549A5986A
2 changed files with 9 additions and 0 deletions

View file

@ -11,4 +11,5 @@ await build({
sourcemap: true,
format: 'esm',
outdir: './dist/',
inject: ['tools/cjs-shim.ts'], // https://github.com/evanw/esbuild/issues/1921#issuecomment-1898197331
});