nexu-io--open-design
22 行
374 B
JavaScript
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",
|
|
});
|