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(transformer-directives,nuxt): revert enforce: 'pre', disable mergeRules #1930

merged 2 commits into from Nov 29, 2022


Copy link

@sibbng sibbng commented Nov 29, 2022

Reverts #1923
Fixes #1929
Fixes #1849 by disabling cssnano's mergeRules optimization if transformer-directive is detected in nuxt module. esbuild already merges the rules

Also fixes an issue where getConfig always returns an empty object. I discovered it while debugging the issue.

async function getConfig() {
await ready
return rawConfig

Copy link

netlify bot commented Nov 29, 2022

Deploy Preview for unocss ready!

Name Link
🔨 Latest commit a9b746e
🔍 Latest deploy log
😎 Deploy Preview
📱 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 ae2bdd5 into main Nov 29, 2022
@antfu antfu deleted the fix/transformer-directives-nuxt branch November 29, 2022 23:44
praburangki pushed a commit to praburangki/unocss that referenced this pull request Jan 12, 2023
…ergeRules` (unocss#1930)

* fix(transformer-directives,nuxt): revert `enforce: 'pre'`, disable `mergeRules`

* fix build
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
None yet
2 participants