-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
chore(gatsby): convert babel-loader-helpers to typescript #36237
Merged
imjoshin
merged 17 commits into
gatsbyjs:master
from
Kornil:typescript-gatsby-babel-loader-helpers
Aug 3, 2022
Merged
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
08e7f9d
Add types
Kornil 9496013
Fix imports
Kornil 8370a90
Add non-null assertion
Kornil efe0469
Merge branch 'master' of github.com:gatsbyjs/gatsby into typescript-g…
Kornil fa7886f
Update types
Kornil e4d126b
Fix test file types
Kornil 7264a45
Use proper Stage enum
Kornil bfc2b6a
Update snaps
Kornil 36a13d7
Address feedback
Kornil 10b458e
Merge branch 'master' of github.com:gatsbyjs/gatsby into typescript-g…
Kornil 8f7e8df
Merge branch 'master' of github.com:gatsbyjs/gatsby into typescript-g…
Kornil 13f30b5
Fix exports
Kornil d377a79
Make test change to kick off builds
imjoshin e2936c0
Revert change, tests look good
imjoshin 853b38c
Merge branch 'master' of github.com:gatsbyjs/gatsby into typescript-g…
Kornil c446d6d
Merge branch 'typescript-gatsby-babel-loader-helpers' of github.com:K…
Kornil c6eebb1
Merge branch 'master' into typescript-gatsby-babel-loader-helpers
LekoArts File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think adding the
dirname
is ok here, but should we keep thename
key as well?https://github.com/babel/babel/blob/main/packages/babel-core/src/config/item.ts
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was going to leave it but the types from babel changed and no longer include it.
The
createConfigItem
method that we use here comes from this type https://github.com/babel/babel/blob/main/packages/babel-core/src/config/item.ts#L28 and it now accepts onlydirname
andtype
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking at the current babel docs and previous versions the createConfigItem now has these parameters so changing them feels correct (and not adding invalid
name
key)