fix: keep the outfile filename the same as where it was used (#695)

Co-authored-by: Steve Ruiz <steveruizok@gmail.com>
This commit is contained in:
Pengsha Ying 2022-05-21 17:23:07 +08:00 committed by GitHub
parent eca66b1c54
commit b077fa4246
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -17,7 +17,7 @@ async function main() {
await esbuildServe(
{
entryPoints: ['src/index.tsx'],
outfile: 'dist/bundle.js',
outfile: 'dist/index.js',
bundle: true,
minify: false,
sourcemap: true,