aboutsummaryrefslogtreecommitdiffstats
path: root/packages/service-shared/esbuild.config.js
blob: 6f639e3f5d24e5a4411bedc96c3634b5ad82ae39 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import { chrome, node } from '../../config/buildConstants.js';
import fileUrlToDirname from '../../config/fileUrlToDirname.js';
import getEsbuildConfig from '../../config/getEsbuildConfig.js';

export default getEsbuildConfig({
  absWorkingDir: fileUrlToDirname(import.meta.url),
  entryPoints: ['src/index.ts'],
  outfile: 'dist/index.mjs',
  format: 'esm',
  // The package that includes this one will have a header comment,
  // no need to have an additional one here.
  banner: {},
  // Keep @__PURE__ annotations intact.
  minify: false,
  platform: 'node',
  target: [chrome, node],
  external: ['zod'],
});