@intrnl/bundl

0.2.0 • Public • Published

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 to esnext
  • minify Whether the output should be minified, disabled by default
  • jsxFactory
    JSX factory to use, defaults to React.createElement
  • jsxFragment JSX fragment factory to use, defaults to React.Fragment

Readme

Keywords

none

Package Sidebar

Install

npm i @intrnl/bundl

Weekly Downloads

2

Version

0.2.0

License

MIT

Unpacked Size

6.58 kB

Total Files

3

Last publish

Collaborators

  • intrnl