microsoft / microsoft/tslib

Version 1.14.0 removes default export

Open
#128 2 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
1.3k
Forks
145
PR merge metrics
No merged PRs in 30d

Description

This used to work before version 1.14.0 and is still listed in the README:

var tslib_1 = require("tslib");
exports.x = {};
exports.y = tslib_1.__assign({}, exports.x);

I consider this a breaking change since many older libraries are built using tslib < 1.14.0 but upgrading a local app to tslib >= 1.14.0 breaks libraries that rely on the default export.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the README example and compare the require("tslib") behavior between versions 1.13.x and 1.14.0, focusing on the package entry point and default export. Confirm the reported older-library usage and define done as preserving that compatibility or updating the README and compatibility expectations to match the intended behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.