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

:global { } don't works as expected #661

Open
Inqnuam opened this issue Nov 11, 2024 · 1 comment
Open

:global { } don't works as expected #661

Inqnuam opened this issue Nov 11, 2024 · 1 comment
Labels
question Further information is requested

Comments

@Inqnuam
Copy link

Inqnuam commented Nov 11, 2024

Describe the bug
The entier :global {} (not :global()) is dropped.

:global() works as expected.

Logs
no log.

To Reproduce

Used config:

 sveltePreprocess({
      sourceMap: true,
 });

code:

<style>
 :global {
  .someGlobalClass {
    background-color: red;
   }
 }
</style>

Expected behavior
output something like this:

.someGlobalClass {
  background-color: red;
}

Information about your project:

  • svelte-preprocess version: 6.0.3

  • Whether your project uses Webpack or Rollup: none

@Conduitry
Copy link
Member

Is your concern that the preprocessor isn't transforming that? I wouldn't expect it to. That's valid input to the compiler as of Svelte 5 - and then the compiler handles it from there.

If that's not what you're referring to, please provide a complete reproduction, not just code snippets.

@Conduitry Conduitry added the question Further information is requested label Nov 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants