Skip to content
surplusPublic

About

ESBuild plugin for the Surplus compiler

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

18 Commits

Folders and files

Repository files navigation

Surplus ESBuild Plugin

ESBuild plugin for the Surplus Javascript framework.

NOTE: This plugin strips typescript types from the output. If this is affecting you negatively, please open an issue with the compiler.

Usage

npm i --save-dev @surplus/esbuild
pnpm add -D @surplus/esbuild
yarn add -D @surplus/esbuild
import esbuild from "esbuild";
import surplus from "@surplus/esbuild";

const surplusOptions = {
	/* see @surplus/compiler for options */
};

await esbuild.build({
	entryPoints: ["app.js"],
	bundle: true,
	minify: true,
	outfile: "out.js",
	plugins: [surplus(surplusOptions)], // options are optional
});

License

Copyright © 2023-2025 Josh Junon.

Released under the MIT License.

About

ESBuild plugin for the Surplus compiler

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Sponsor this project

Packages

Contributors

Languages