镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Add disableImportOptimizations compiler option - #30766

Closed
Deleted user (ghost) wants to merge 3 commits into
masterfrom
unknown repository
Closed

Deleted user (ghost) wants to merge 3 commits into
masterfrom
unknown repository

Conversation

@ghost

Copy link
Copy Markdown

Adds new compiler option disableImportOptimizations to disable import optimizations (removal) as discussed in #9191.

@msftclas

Microsoft Contribution License Agreements (msftclas) commented Apr 5, 2019 •

Copy link
Copy Markdown

CLA assistant check
All CLA requirements met.

@RyanCavanaugh

Copy link
Copy Markdown
Member

We're unable to accept PRs for Suggestions tagged In Discussion - please see the PR template. Thanks!

@ghost

Copy link
Copy Markdown
Author

Ryan Cavanaugh (@RyanCavanaugh) How about you guys provide us an adequate solution then? The issue is almost 3 years old.

@marcj

Copy link
Copy Markdown

@raphaelhittich, cool! Could you fork TypeScript and publish your version on npm?
Removing unused imports that have side-effects (like decorators on a class that registers itself in a global context) it literally one of the biggest DX breaker of TS, so I guess a lot of people would use your fork if they need such a solution. Forking is the only option if Microsoft thinks they know it better. Maybe we can fix then also the whole nominal type and runtime reflection disaster.
I can support you with time and $, if you need any help. Maybe it makes sense to create a patreon then as I think a lot of people/projects will use it since it's really a game changer.

@microsoft Microsoft (microsoft) locked as resolved and limited conversation to collaborators Oct 21, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants