Remove imports from embedded styles

This commit is contained in:
Cohee 2024-05-27 13:25:21 +03:00
parent 00fc40408a
commit 630111c737

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) {