aboutsummaryrefslogtreecommitdiffstats
path: root/packages/shared/esbuild.config.js
blob: 66d6658ff34d550cd9a7725816889112c515ad6a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import { chrome, node } from '../../config/buildConstants.js';
import { getConfig } from '../../config/esbuildConfig.js';
import { fileURLToDirname } from '../../config/utils.js';

export default getConfig({
  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: {},
  platform: 'node',
  target: [chrome, node],
  external: [
    'mobx',
    'mobx-state-tree',
    'zod',
  ],
});