335c4n0r

svelte/5/is-where-scoping

No description available

svelte5migration
Public
58 executions

Run locally

npx codemod svelte/5/is-where-scoping

This codemod updates CSS handling in your project:

  • Transforms Tailwind @apply directives and CSS selectors by adding :global() inside :is(...) and :where(...) selectors.
  • Applies changes to CSS within <style> tags in Svelte files.
  • Ensures global scope is properly applied to Tailwind utilities and complex selectors.

Before

jsx

After

jsx

Ready to contribute?

Build your own codemod and share it with the community.