Skip to content

Next-generation configuration loading #2629

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

Merged
merged 3 commits into from
Jan 1, 2021
Merged

Next-generation configuration loading #2629

merged 3 commits into from
Jan 1, 2021

Conversation

novemberborn
Copy link
Member

@novemberborn novemberborn commented Dec 23, 2020

Our desire to expose configuration to our ESLint plugin has stopped us from enabling asynchronous configuration loading. However, using Atomics and worker threads we can make this work!

This adds support for .mjs files, fixing #2346. We can remove the special handling of ava.config.js files, relying on Node.js to follow the package type instead. We can now also support asynchronous factories.

This also lays groundwork for #2285.

And export as an individual member, rather than default.
@novemberborn novemberborn force-pushed the async-config branch 2 times, most recently from 485f784 to 6250ad2 Compare January 1, 2021 15:18
@novemberborn novemberborn marked this pull request as ready for review January 1, 2021 15:50
@novemberborn novemberborn linked an issue Jan 1, 2021 that may be closed by this pull request
@novemberborn novemberborn changed the title Support asynchronous configuration loading Next-generation configuration loading Jan 1, 2021
@novemberborn novemberborn merged commit a2f2614 into master Jan 1, 2021
@novemberborn novemberborn deleted the async-config branch January 1, 2021 15:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support ava.config.mjs files
1 participant