Thanks to visit codestin.com
Credit goes to github.com

Skip to content

remove ts type imports on Program:exit#10009

Open
tanhauhau wants to merge 2 commits intobabel:next-8-devfrom
tanhauhau:tanhauhau/feat/ts-type-removed-on-program-exit
Open

remove ts type imports on Program:exit#10009
tanhauhau wants to merge 2 commits intobabel:next-8-devfrom
tanhauhau:tanhauhau/feat/ts-type-removed-on-program-exit

Conversation

@tanhauhau
Copy link
Member

Q                       A
Fixed Issues? Fixes #9991
Patch: Bug Fix?
Major: Breaking Change?
Minor: New Feature?
Tests Added + Pass? Yes
Documentation PR Link
Any Dependency Changes?
License MIT

fyi @jeysal

@babel-bot
Copy link
Collaborator

babel-bot commented May 21, 2019

Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/10841/

@babel-bot
Copy link
Collaborator

Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/10829/

@nicolo-ribaudo nicolo-ribaudo added the PR: Breaking Change 💥 A type of pull request used for our changelog categories for next major release label May 21, 2019
@nicolo-ribaudo nicolo-ribaudo added this to the Babel 8.x milestone May 21, 2019
@nicolo-ribaudo
Copy link
Member

Thanks!

// with this crawl, babel-plugin-transform-typescript
// used to elide the import we just added
// https://github.com/babel/babel/issues/7592
path.scope.crawl();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't we keep both crawls in? Without this one, the test no longer ensures that a plugin doing this works correctly and it could regress to eliding injected but not yet referenced imports

Copy link
Contributor

@jeysal jeysal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, LGTM as far as not eliding injected imports is concerned

@nicolo-ribaudo nicolo-ribaudo mentioned this pull request Nov 21, 2019
34 tasks
@JLHwung JLHwung changed the base branch from master to next-8-dev June 25, 2020 15:07
@JLHwung JLHwung removed this from the v8.0.0 milestone Aug 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PR: Breaking Change 💥 A type of pull request used for our changelog categories for next major release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TS type imports should be removed on Program:exit

5 participants