import { TEST_OUT_FOLDER } from "../common/constants.js";
import { nodeTestPrepPlugin } from "./esbuild-plugins/node-test-prep-plugin.js";
export function generateBuildOptionsForTest(argv) {
    return {
        outdir: `${argv.dir}/${TEST_OUT_FOLDER}`,
        external: ["chai", "dotenv/config", "node:test"],
        platform: "node",
        sourcemap: true,
        bundle: true,
        treeShaking: true,
        format: "esm",
        outExtension: {
            ".js": ".mjs",
        },
        plugins: [
            nodeTestPrepPlugin(argv, {
                "@zuplo/test": "",
            }),
        ],
    };
}
//# sourceMappingURL=esbuild-config.js.map