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(css): don't transform sass function calls with namespace #18414

Conversation

sapphi-red
Copy link
Member

Description

This PR fixes background: url(string.to-lower-case($var2)); to be not to transformed. I found this while fixing the deprecation warnings coming from sass.

@sapphi-red sapphi-red added feat: css p2-edge-case Bug, but has workaround or limited in scope (priority) labels Oct 21, 2024
}
: null
},
function (url) {
return url.endsWith('.wxss') ? { contents: '' } : null
},
],
silenceDeprecations: ['legacy-js-api'],
silenceDeprecations: ['legacy-js-api', 'import'],
Copy link
Member Author

Choose a reason for hiding this comment

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

I added import to silenceDeprecations due to sass/embedded-host-node#340.

@patak-dev patak-dev enabled auto-merge (squash) October 21, 2024 10:39
@patak-dev patak-dev merged commit dbb2604 into vitejs:main Oct 21, 2024
14 checks passed
@sapphi-red sapphi-red deleted the fix/support-sass-function-call-with-namespace branch October 22, 2024 01:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat: css p2-edge-case Bug, but has workaround or limited in scope (priority)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants