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

Restore public API of resolvePlugin/resolvePreset #16888

Merged
merged 3 commits into from
Oct 9, 2024

Conversation

nicolo-ribaudo
Copy link
Member

@nicolo-ribaudo nicolo-ribaudo commented Oct 9, 2024

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

Fixes #16887. We probably need a better API, but for now lets restore the old behavior.

@nicolo-ribaudo nicolo-ribaudo added PR: Bug Fix 🐛 A type of pull request used for our changelog categories i: regression pkg: core labels Oct 9, 2024
@babel-bot
Copy link
Collaborator

babel-bot commented Oct 9, 2024

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

export const resolvePlugin = (name: string, dirname: string) =>
resolvers.resolvePlugin(name, dirname, false).filepath;
export const resolvePreset = (name: string, dirname: string) =>
resolvers.resolvePreset(name, dirname, false).filepath;
Copy link
Contributor

Choose a reason for hiding this comment

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

Since they are public, can we add a few test cases for them? It can be done in another PR.

@nicolo-ribaudo
Copy link
Member Author

Whops, I pushed two commits to the wrong PR

@nicolo-ribaudo nicolo-ribaudo merged commit 2570cfd into babel:main Oct 9, 2024
103 checks passed
@nicolo-ribaudo nicolo-ribaudo deleted the core-resolve-api branch October 9, 2024 20:09
@nicolo-ribaudo
Copy link
Member Author

I'm releasing a patch for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
i: regression pkg: core PR: Bug Fix 🐛 A type of pull request used for our changelog categories
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Plugin config validation issue
4 participants