mirror of
https://github.com/runablehq/mini-browser.git
synced 2026-09-20 13:45:46 +08:00
26 lines
536 B
JavaScript
26 lines
536 B
JavaScript
import { build } from "esbuild"
|
|
|
|
await build({
|
|
entryPoints: ["src/index.ts"],
|
|
bundle: true,
|
|
platform: "node",
|
|
target: "node18",
|
|
format: "esm",
|
|
outfile: "dist/mb.js",
|
|
banner: { js: "#!/usr/bin/env node" },
|
|
external: ["puppeteer-core"],
|
|
})
|
|
|
|
await build({
|
|
entryPoints: ["src/recorder-daemon.ts"],
|
|
bundle: true,
|
|
platform: "node",
|
|
target: "node18",
|
|
format: "esm",
|
|
outfile: "dist/recorder-daemon.js",
|
|
external: ["puppeteer-core"],
|
|
})
|
|
|
|
console.log("Built dist/mb.js")
|
|
console.log("Built dist/recorder-daemon.js")
|