Remove imports from embedded styles

This commit is contained in:
Cohee 2024-05-27 13:25:21 +03:00
parent 56392c1789
commit 2c049e5611

View File

@ -471,6 +471,9 @@ export function decodeStyleTags(text) {
const rules = ast?.stylesheet?.rules;
if (rules) {
for (const rule of rules) {
if (rule.type === 'import') {
rules.splice(rules.indexOf(rule), 1);
}
if (rule.type === 'rule') {
if (rule.selectors) {