瀏覽代碼

fix: fix scss compile support customcss umd

代强 1 年之前
父節點
當前提交
7e594bbc47
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      packages/semi-scss-compile/src/utils/writeFile.ts

+ 1 - 1
packages/semi-scss-compile/src/utils/writeFile.ts

@@ -84,7 +84,7 @@ const preProcessScssMap = (scssMapOrigin: ReturnType<typeof generateScssMap>) =>
         }
         allCustomRaw+= themeLocalRaw || "";
         allCustomRaw+="\n";
-        allCustomRaw+=customScssRaw+"\n";
+        allCustomRaw+=`body:not(:not(body)){${customScssRaw}};`+"\n";
         scssMap.theme['index.scss'] += '\n'+allCustomRaw;
     }