Skip to content

jiti v2 roadmap #174

@pi0

Description

@pi0

Jiti was created almost 3 years ago with the aim of bringing stable, compact and fast ESM (and later Typescript) support to all JavaScript runtimes.

Skipping years ahead, most of the recent Node.js versions has built-in ESM support and new runtimes (such as Deno and Bun), ship with native typescript even!

Jiti, today has an enormous 32M monthly downloads (❤️) nowadays (mainly Nuxt and Tailwind traffic i guess) and making breaking changes can affect the ecosystem.

My plan for v2 is to include more risky changes in it but also avoid API-breaking changes for Jiti v2 as much as possible to make migration smooth.

### Tasks
- [x] https://github.com/unjs/jiti/pull/240
- [x] https://github.com/unjs/jiti/pull/239
- [x] Add `exports` field
- [x] Enable ESMResolve by default
- [x] Leverage `import.meta.resolve` when available
- [ ] https://github.com/unjs/jiti/pull/158
- [ ] https://github.com/unjs/jiti/issues/32

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions