Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tslib as runtime dep #371

Merged
merged 1 commit into from
May 8, 2022
Merged

Add tslib as runtime dep #371

merged 1 commit into from
May 8, 2022

Conversation

ilharp
Copy link
Contributor

@ilharp ilharp commented May 8, 2022

#370 (comment)

According to typescriptlang.org, not using importHelpers "can result in code duplication if the same helper is used in many different modules". So use tslib might be a better solution.

The reason the unit tests are not failing is that unit tests use the development environment's node_modules when running.

Tested on my computer.

close #370

#370 (comment)

According to [typescriptlang.org](https://www.typescriptlang.org/tsconfig#importHelpers),
not using `importHelpers` "can result in code duplication if the same helper is used in many different modules".
So use `tslib` might be a better solution.

The reason the unit tests are not failing is that
unit tests use the development environment's `node_modules` when running.

Tested on my computer.

close #370
@ryanluker
Copy link
Owner

@ilharp How were you able to confirm the fix on your computer?
I was going to try compiling the vsix and installing that locally, maybe 🤔.

@ryanluker ryanluker added this to the 2.10.1 milestone May 8, 2022
@ryanluker ryanluker merged commit 8452cff into ryanluker:master May 8, 2022
@ilharp
Copy link
Contributor Author

ilharp commented May 8, 2022

@ilharp How were you able to confirm the fix on your computer? I was going to try compiling the vsix and installing that locally, maybe 🤔.

  1. npm run build && vsce package and then unzip the generated vsix, and there is tslib in node_modules.

image

  1. And then install this vsix then it just works™

image

@ryanluker
Copy link
Owner

@ilharp How were you able to confirm the fix on your computer? I was going to try compiling the vsix and installing that locally, maybe 🤔.

  1. npm run build && vsce package and then unzip the generated vsix, and there is tslib in node_modules.

image

  1. And then install this vsix then it just works™

image

KK thanks! I thought that was the case so I confirmed locally your fix.
Release is going out shortly.

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.

Coverage commands not working anymore since last release
2 participants