1.0.0 • Published 10 months ago
esbuild-gjs v1.0.0
Gjs Plugin for ESBuild
This plugin configures esbuild to bundle files for Gjs.
- Module names start with "gi:", "file:", "resource:" will are externals
- Built-in module names are externals
- Output will be ES module if no specified
- Legacy import is unsupported
import * as esbuild from "esbuild";
import GjsPlugin from "esbuild-gjs";
await esbuild.build({
entryPoints: ["index.ts"],
target: "firefox68", // Spider Monkey 68
bundle: true,
outfile: "index.js",
plugins: [GjsPlugin({})]
});
License
SPDX: Apache-2.0
1.0.0
10 months ago