esbuild configuration for pob
npm install --save rollup-typescript
import { dirname } from "node:path";
import { fileURLToPath } from "node:url";
import createRollupConfig from "@pob/rollup-typescript/createRollupConfig.js";
import run from "@pob/rollup-typescript/plugin-run.cjs";
const watch = process.env.ROLLUP_WATCH === "true";
export default createRollupConfig({
cwd: dirname(fileURLToPath(import.meta.url)),
outDirectory: "build",
plugins: [watch && run({ execArgv: ["--enable-source-maps"] })],
});