Przeglądaj źródła

fix: fix scss compile support customcss umd

代强 1 rok temu
rodzic
commit
7e594bbc47

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

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