Skip to content

Handle an async design system #1031

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 1 commit into from
Aug 9, 2024
Merged

Conversation

thecrypticace
Copy link
Contributor

In v4 we've made compile async as well as __unstable_loadDesignSystem and we need to handle that in intellisense.

let design = tailwindcss.__unstable__loadDesignSystem(resolved.css) as DesignSystem
let design: DesignSystem = await tailwindcss.__unstable__loadDesignSystem(resolved.css, {
loadPlugin() {
return () => {}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We're intentionally not handling @plugin here — this PR is purely to make sure alpha 19 doesn't break in intellisense. That support will be done in a separate PR.

@thecrypticace thecrypticace merged commit eea9f59 into main Aug 9, 2024
@thecrypticace thecrypticace deleted the feat/v4-async-design-system branch August 9, 2024 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.

2 participants