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

feat(svelte)!: move out extractorSvelte to a separate package #2368

Merged
merged 11 commits into from
Apr 9, 2023

Conversation

antfu
Copy link
Member

@antfu antfu commented Mar 18, 2023

Instead of import { extractorSvelte } from 'unocss', now you need to install it via

npm i -D @unocss/extractor-svelte
-import { extractorSvelte } from 'unocss'
+import extractorSvelte from '@unocss/extractor-svelte'

export default defineConfig({
  extractors: [
-   extractorSvelte
+   extractorSvelte()
  ]
})

@netlify
Copy link

netlify bot commented Mar 18, 2023

Deploy Preview for unocss ready!

Name Link
🔨 Latest commit 261b5ed
🔍 Latest deploy log https://app.netlify.com/sites/unocss/deploys/6432727dabe0070008784587
😎 Deploy Preview https://deploy-preview-2368--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 settings.

@antfu antfu merged commit 65371ae into main Apr 9, 2023
9 checks passed
@antfu antfu deleted the feat/extractors branch April 9, 2023 08:11
@JaKXz
Copy link
Contributor

JaKXz commented Apr 10, 2023

small typo / for future folks wanting a copy pasta:

import extractorSvelte from '@unocss/extractor-svelte'

Thanks for the release! :)

@antfu
Copy link
Member Author

antfu commented Apr 10, 2023

Oh thanks! Updated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants