Skip to content

Use a build-helper library instead of DIY #3

Open
@mmkal

Description

@mmkal

Possibilities:

  • microbundle
    • Pros:
    • Cons:
      • I don't really need to bundle, just to compile and create a wrapper .mjs file
      • I don't know if it creates wrappers, instead it would create two separate outputs, one for commonjs and one for ESM, which would hit the dual-package hazard. I'm not totally convinced that's a major issue for this library since it just provides helpers for building your own fetch, but probably better to avoid to be safe
      • Doesn't use esbuild or swc (yet)
      • Last publish a year ago (at time of writing, 2023-08-24)
  • unbuild
    • Pros:
      • Seems it can build-helpfully rather than bundle
      • Seems easy to configure
      • Last publish 2 days ago
      • Update April 2024: Last publish 8 months ago
    • Cons:
      • Haven't used
      • Marginally less popular than microbundle
  • tsup
    • Seen good people use it (trpc, panda)
  • just tsc, no -> .cjs conversion
    • The original and still the best
    • Given we don't really need a separate ESM bundle, maybe this is better

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions