-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Misc fixes + Move babel-core config processing from transformation/file/options into top-level folder #5489
Merged
Merged
Changes from 1 commit
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
62def8d
Make presets consistently resolve string values relative to their con…
loganfsmyth 344f0a6
Centralize preset processing from two loops to one.
loganfsmyth bf13ed4
Limit where certain arguments are allowed in Babel config.
loganfsmyth 38720ae
Remove store subclassing from Plugin class.
loganfsmyth 05ee30c
Use the standard option parser to load the internal plugins.
loganfsmyth 6c4810c
Move Plugin class to be part of config loading, independent of File.
loganfsmyth 12a2124
Move the deeply nested option logic to a toplevel folder.
loganfsmyth 3e2d731
Move the Store class to be inside transformation.
loganfsmyth b71569f
Remove unneeded util.js file.
loganfsmyth 7b5d4fe
Resolve parser and generator plugins in configuration resolution.
loganfsmyth f3f907b
Remove unneeded helper file.
loganfsmyth 3c63431
Move config loading helpers into config folder.
loganfsmyth a15de19
Encapsulate config loading in config/ index file.
loganfsmyth 534f621
remove unused use of removed util class
hzoo 4901f33
remove unnecessary call
hzoo 7551a8e
Update yarn.lock
hzoo 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
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 guess we never had to use .get/.set?
Actually what about https://github.com/babel/babel/blob/7.0/packages/babel-plugin-transform-runtime/src/index.js#L32
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.
this
in that example is an instance ofPluginPass
, notPlugin
. The only placePlugin
was ever even exposed wasthis.plugin
which I'm removing in this PR too, so removing the subclassing won't hurt anything that isn't already broken by that.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.
Ah ok I couldn't tell so I just assumed it was Plugin (and of course the tests passes so it's good, just was confused)
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.
Yeah understanding where each type of class is used is super confusing.