aboutsummaryrefslogtreecommitdiffstats
path: root/packages/service-shared/esbuild.config.js
blob: ce57cd7a9a2db6c1269001c1d43d017ae6cc6870 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// @ts-check

const { chrome } = require('../../config/build-common');
const { getConfig } = require('../../config/esbuild-config');

module.exports = getConfig({
  absWorkingDir: __dirname,
  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: {},
  platform: 'node',
  target: chrome,
  external: [
    'zod',
  ],
});