1import { build } from "esbuild";2import { dirname, resolve } from "node:path";3import { fileURLToPath } from "node:url";45const root = dirname(fileURLToPath(import.meta.url));67await build({8 absWorkingDir: root,9 entryPoints: ["app.js"],10 bundle: true,11 legalComments: "none",12 minify: true,13 outfile: resolve(root, "../assets/app.js"),14 target: ["safari15"],15});