Zet - How do you remove legal comments in esbuild?

How do you remove legal comments in esbuild?

There is a legalComments option

require('esbuild').buildSync({
  entryPoints: ['app.js'],
  legalComments: 'none',
})

#esbuild