Ctrl K
ComunidadGuías…

ts/bundle_ts.mjs

Rama main · réplica de lectura del repositorio original.

Archivo original ↗Preguntar a KiBot
// Copyright: Ankitects Pty Ltd and contributors
// License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html

import { build } from "esbuild";
import { argv, env } from "process";

const [_node, _script, entrypoint, bundle_js] = argv;

// support Qt 5.14
const target = ["es6", "chrome77"];

build({
    bundle: true,
    entryPoints: [entrypoint],
    outfile: bundle_js,
    minify: env.RELEASE && true,
    sourcemap: env.SOURCEMAP ? "inline" : false,
    preserveSymlinks: true,
    target,
}).catch(() => process.exit(1));