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

Add support for new loadModule and loadStylesheet APIs from v4 #317

Merged
merged 3 commits into from
Sep 24, 2024

Conversation

thecrypticace
Copy link
Contributor

@thecrypticace thecrypticace commented Sep 20, 2024

Related to tailwindlabs/tailwindcss#14446

We'll be handling @import resolution in core with the appropriate hooks to ensure that all I/O is done outside of the core package. This PR preps for that.

@thecrypticace thecrypticace changed the title Add support for new loadModule and loadStylesheet APIs Add support for new loadModule and loadStylesheet APIs from v4 Sep 20, 2024
@thecrypticace thecrypticace force-pushed the feat/v4-load-stylesheet branch 3 times, most recently from 7fac133 to 6e741ac Compare September 23, 2024 17:43
@thecrypticace thecrypticace marked this pull request as ready for review September 23, 2024 18:20
Comment on lines +226 to +230
if (!supportsImports) {
let resolveImports = postcss([postcssImport()])
let result = await resolveImports.process(css, { from: entryPoint })
css = result.css
}
Copy link
Member

Choose a reason for hiding this comment

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

Nice that we can already shave off some work here too 💪

@thecrypticace thecrypticace merged commit cdb3b98 into main Sep 24, 2024
1 check passed
@thecrypticace thecrypticace deleted the feat/v4-load-stylesheet branch September 24, 2024 15:57
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