esbpack
v0.0.5
Published
Yet another bundler for websites with esbuild
Downloads
12
Readme
esbpack
Yet another bundler for websites with esbuild.
Installation
npm install --save-dev esbuild esbpack
Please install esbuild
by your hands. esbpack
doesn't install it automatically.
Example
// build.ts
import { esbpack } from 'esbpack';
esbpack({
defineBuilds: build => {
build({
entryPoints: ['path/to/file.ts'],
outfile: 'path/to/output.js',
bundle: true,
watch: true,
});
},
devServer: {
port: 8000,
publicDir: '/',
serveDir: './dist'
}
});
License
MIT