Files
0d25afe113 fix: support async Babel plugin in eslint-parser (#17348)
* Attempt to fix #17331

* Split maybeParse

* Apparently the async version of createConfigItem doesn't exist?

* Add to mini-babel-core, and rename maybeParse to maybeParseSync and asyncMaybeParse to maybeParse

* Use createConfigItemAsync

* Hope this is sufficient for a test

* Don't need an import

* ope

* review

---------

Co-authored-by: Babel Bot <[email protected]>
2025-06-02 11:06:40 -04:00

12 lines
184 B
JavaScript

export default async function () {
await Promise.resolve();
return {
visitor: {
StringLiteral(path) {
path.replaceWithSourceString("foo");
}
}
};
};