modules/index.js should re-export tslib.es6.js instead of tslib.js
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 1.3k
- Forks
- 145
- PR merge metrics
- No merged PRs in 30d
Description
Unless I'm misunderstanding something, I'd expect modules/index.js to re-export ../tslib.es6.js instead of ../tslib.js.
https://github.com/microsoft/tslib/blob/master/modules/index.js#L1
I'm basing my statement on the understanding that exports['.']['import'] should point to some "modern" code:
https://github.com/microsoft/tslib/blob/master/package.json#L29-L34
(The reason I'm opening this issue is that I'm facing some problem in combination with Vite which is based on ESM.)
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by comparing modules/index.js with the exports configuration in package.json, then reproduce the reported Vite ESM resolution problem. Verify which file exports['.']['import'] resolves to and whether the module entry behaves as expected. Done means the intended modern ESM entry resolves correctly without breaking the existing package layout.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript, vite
- Domain
- build-system, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100