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

Don't overwrite unnecessary nodes #110

Closed
nonara opened this issue Jun 16, 2021 · 0 comments
Closed

Don't overwrite unnecessary nodes #110

nonara opened this issue Jun 16, 2021 · 0 comments

Comments

@nonara
Copy link
Collaborator

nonara commented Jun 16, 2021

Presently, the plugin resolves for every import, require, etc. call / statement, and it overwrites all of them — irrespective of there being an actual need to overwrite them.

By changing this to only process nodes which are matched by paths or explicitly tagged, we can make the process faster, more efficient, and ultimately reduce bug report volume.

While the latter point is not necessarily a positive, the former two make this a very valuable change.

The reason this has not already been done is because there was no compiler API logic for determining paths matching. However, I've identified the logic and can replicate it by a couple of simple calls to the publicly exported underlying compiler matching functionality, which makes this possible.

nonara added a commit that referenced this issue Jun 16, 2021
- Several improvements were made for speed and efficiency.
- Now accommodating for new TS empty baseURL provision (closes #109)
- Pre-checking necessity before overwriting paths (closes #110)
- Rewrote core resolution methodology to:
  - Properly handle implicit indexes (closes #106)
  - Properly handle implicit sub-package indexes set via package.json 'main' #108)
  - Not follow symlinks (#107)
  - Resolve from output path as opposed to SourceFile path (#103)
nonara added a commit that referenced this issue Jun 16, 2021
- Several improvements were made for speed and efficiency.
- Now accommodating for new TS empty baseURL provision (closes #109)
- Pre-checking necessity before overwriting paths (closes #110)
- Rewrote core resolution methodology to:
  - Properly handle implicit indexes (closes #106)
  - Properly handle implicit sub-package indexes set via package.json 'main' #108)
  - Not follow symlinks (#107)
  - Resolve from output path as opposed to SourceFile path (#103)
nonara added a commit that referenced this issue Jun 16, 2021
- Several improvements were made for speed and efficiency.
- Now accommodating for new TS empty baseURL provision (closes #109)
- Pre-checking necessity before overwriting paths (closes #110)
- Rewrote core resolution methodology to:
  - Properly handle implicit indexes (closes #106)
  - Properly handle implicit sub-package indexes set via package.json 'main' #108)
  - Not follow symlinks (#107)
  - Resolve from output path as opposed to SourceFile path (#103)
@nonara nonara closed this as completed in ed1df79 Jun 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant