bundl
Effortless, no-config library bundler.
- Bundles your source code into a single ESM and CommonJS file
- Transpiles TypeScript, with the help of esbuild
- Does not bundle dependencies
If you're looking for something more, you can try microbundle or tsdx instead.
Install
npm install --save-dev @intrnl/bundl
# pnpm install --save-dev @intrnl/bundl
# yarn add --dev @intrnl/bundl
Add source
field into your package.json
that leads to the entry file for
your library, and either a main
or module
field for the output, then all
you need to do is...
# This is all you have to do!
bundl
Configuration
There is really not much configuring to do aside from above, but you might be
interested in messing around with the output that it generates. All you need
is to add bundl
field, which provides the following
-
target
Environment target, defaults toesnext
-
minify
Whether the output should be minified, disabled by default -
jsxFactory
JSX factory to use, defaults toReact.createElement
-
jsxFragment
JSX fragment factory to use, defaults toReact.Fragment