项目文件夹

文件
wehub-resource-sync 070959e133
landing-page-staging / Deploy landing page to staging (push) Has been skipped
landing-page-ci / Validate landing page (push) Failing after 4s
visual-baseline / Capture visual baselines (push) Has been cancelled
bake-plugin-previews / Bake plugin previews (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 12:00:47 +08:00

22 行
374 B
JavaScript

import { build } from "esbuild";
const sharedOptions = {
bundle: true,
format: "esm",
packages: "external",
platform: "node",
target: "node24",
};
await build({
...sharedOptions,
entryPoints: ["./src/index.ts"],
outfile: "./dist/index.mjs",
});
await build({
...sharedOptions,
entryPoints: ["./src/headless.ts"],
outfile: "./dist/headless.mjs",
});