nihilqui
Version:
Typescript .d.ts generator from GIR for gjs and node-gtk
14 lines (13 loc) • 389 B
JavaScript
import { build } from "esbuild";
await build({
entryPoints: ['main.ts'],
outfile: 'dist/main.js',
bundle: true,
// target: "firefox60", // Since GJS 1.53.90
// target: "firefox68", // Since GJS 1.63.90
target: "firefox78", // Since GJS 1.65.90
// target: "firefox91", // Since GJS 1.71.1
format: 'esm',
// platform: 'node',
external: ['gi://*'],
})