import { chrome, fileURLToDirname } from '../../config/build-common.js'; import { getConfig } from '../../config/esbuild-config.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, external: [ 'mobx', 'mobx-state-tree', 'zod', ], });