Skip to content

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
importesbuildfrom"esbuild";importsurplusfrom"@surplus/esbuild";constsurplusOptions={/* see @surplus/compiler for options */};awaitesbuild.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