https://github.com/thislight/esbuild-gjs
Gjs Plugin for ESBuild
https://github.com/thislight/esbuild-gjs
Last synced: about 1 year ago
JSON representation
Gjs Plugin for ESBuild
- Host: GitHub
- URL: https://github.com/thislight/esbuild-gjs
- Owner: thislight
- License: apache-2.0
- Created: 2023-07-06T08:00:08.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2024-09-22T07:31:23.000Z (almost 2 years ago)
- Last Synced: 2025-02-12T20:37:55.967Z (over 1 year ago)
- Language: TypeScript
- Size: 22.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Gjs Plugin for ESBuild
This plugin configures [esbuild](https://esbuild.github.io/) to bundle files for [Gjs](https://gitlab.gnome.org/GNOME/gjs).
- Module names start with "gi:", "file:", "resource:" are externals
- [Built-in module names](https://gitlab.gnome.org/GNOME/gjs/-/blob/master/doc/Modules.md) are externals
- Output will be ES module if no specified
- Legacy import is unsupported
````ts
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