79632357

Date: 2025-05-21 16:08:05
Score: 0.5
Natty:
Report link

I think you don't have to use global index.scss.

How about injecting the styles into the shadow root manually?

After creating the shadow root

const styleTag = document.createElement('style');
shadowRoot.appendChild(styleTag);

Inject SCSS (compiled CSS) into the Shadow DOM

styleTag.textContent = require('./index.scss');  // Add this line

Good luck.

Reasons:
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: Adrid