-
-
Notifications
You must be signed in to change notification settings - Fork 539
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
Performance regression introduced in 10.2.0 #1438
Comments
Perhaps doubling-up, loading 2x instances of source-map-support at the same time, is causing issues. |
Yep, looks like that was it. After bumping back to 10.2.0 and removing
If ts-node is automatically registering this, is it not possible to warn if an attempt is made to register it again. Seems like a fairly hard to debug issue otherwise. |
We're using a fork, so technically it's a different library. Feel free to propose a pull request with the warning behavior you would like to see. |
@cspotcode Do you mind pointing me to where the fork is localized in the codebase or elsewhere? I'm not sure I'll have time to tackle this but it feels worthwhile if anybody ever happens upon this thread with similar issues. |
Sure, here's a link dump. The dependency is declared here: Line 160 in 385a469
Published here: Code lives here: It declares a dependency here: Which is published here: Code lives here: |
Expected Behavior
Prior to 10.2.0 our mocha test suite would boot and complete in roughly 20 seconds:
Actual Behavior
After upgrading to 10.2.0 from 10.1.0 with no other changes to our tests or mocha itself:
Steps to reproduce the problem
tsconfig:
Mocha command:
Mocha config in package.json:
Contents of mocha helper files:
Minimal reproduction
Running out of work time for a repro repo today but if it's really necessary I'll send one later.
Specifications
The text was updated successfully, but these errors were encountered: