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

fix(core): uniq resolved presets #3078

Merged
merged 3 commits into from
Sep 4, 2023
Merged

fix(core): uniq resolved presets #3078

merged 3 commits into from
Sep 4, 2023

Conversation

zyyv
Copy link
Member

@zyyv zyyv commented Sep 4, 2023

uniq util function works with basic types, not complex types.😅

const rawPresets = uniq((config.presets || []).flatMap(toArray).flatMap(resolvePresets))

@zyyv zyyv requested a review from antfu as a code owner September 4, 2023 14:10
@netlify
Copy link

netlify bot commented Sep 4, 2023

Deploy Preview for unocss ready!

Name Link
🔨 Latest commit 499bfb6
🔍 Latest deploy log https://app.netlify.com/sites/unocss/deploys/64f5e821469c3100087a716f
😎 Deploy Preview https://deploy-preview-3078--unocss.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@zyyv zyyv changed the title test: bug of uniq presets fix(core): uniq resolved presets Sep 4, 2023
@antfu antfu enabled auto-merge September 4, 2023 16:03
@antfu antfu added this pull request to the merge queue Sep 4, 2023
Merged via the queue into main with commit 6bff23c Sep 4, 2023
10 checks passed
@antfu antfu deleted the uniq-presets branch September 4, 2023 16:14
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.

None yet

2 participants