Skip to content

Conversation

@vikerman
Copy link

@vikerman vikerman commented Jun 2, 2020

Copies tslib.mjs file from tslib.es6.js as part of prepare script.

This change should only affect Node when used with ES modules since the .mjs files is referenced only in conditional export and should be safer.

Resolves #81; closes #84

#87 renames the CJS version to .cjs extension which could potentially break existing bundling/serving tools.

Creating a symbolic link doesn't work since npm package doesn't support it.

Copies tslib.mjs file from tslib.es6.js.

This change should only affect Node when used with ES modules since the .mjs files is referenced only in conditional export and should be safer.

Resolves microsoft#81; closes microsoft#84
@ghost
Copy link

ghost commented Jun 2, 2020

CLA assistant check
All CLA requirements met.

@guybedford
Copy link
Contributor

In #121 I included the ./ export for backwards compatibility on this.

@orta
Copy link
Contributor

orta commented Oct 6, 2020

This is in with #126

@orta orta closed this Oct 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

rename tslib.es6.js to tslib.mjs Problem with tslib and ES modules

3 participants