0.2.0 • Published 5 years ago
@intrnl/bundl v0.2.0
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/bundlAdd 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!
bundlConfiguration
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 toesnextminifyWhether the output should be minified, disabled by defaultjsxFactory
JSX factory to use, defaults toReact.createElementjsxFragmentJSX fragment factory to use, defaults toReact.Fragment