Skip to content

feat: support boolean for autoImports option and update docs #53

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 2 commits into from
Jul 18, 2025

Conversation

toto6038
Copy link
Contributor

This PR adds support for passing autoImports: true in Nuxt module option to have all composables get auto-imported. Meanwhile, the ability to define the subset of composables to auto-import is still preserved, which has been refactored to use JavaScript set for set operation.

@toto6038
Copy link
Contributor Author

@peterbud After reviewing the failed CI job, I found it’s likely caused by the Node.js version in GitHub Actions (20.19.3), which doesn’t support Set.prototype.intersection until Node 22. The intersection call was initially placed to check option validity, by removing it the check will be enforced by TypeScript.

@peterbud
Copy link
Owner

Thanks @toto6038 for this contribution - It's a good improvement!

@peterbud peterbud merged commit 67eda91 into peterbud:main Jul 18, 2025
2 checks passed
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.

2 participants