<img width="1026" alt="图片" src="https://github.com/user-attachments/assets/66a02a8b-ec97-447b-8bbc-ba735e63552d"> 如上图,设置`modern-compiler`后,`varsContent`选项失效了 ``` css: { preprocessorOptions: { scss: { api: "modern-compiler", }, }, }, ``` 目前最新的element-plus推荐用 [modern-compiler](https://preview-18428-element-plus.surge.sh/en-US/guide/installation.html#sass) 配置 vite也即将用 [modern-compiler](https://github.com/vitejs/vite/pull/17937) 作为默认配置,希望作者兼容下❤️ 初步排查是设置`modern-compiler`后,函数走到 https://github.com/GitOfZGT/some-loader-utils/blob/master/src/getSass.js#L36 就不继续走了
如上图,设置
modern-compiler后,varsContent选项失效了目前最新的element-plus推荐用 modern-compiler 配置 vite也即将用 modern-compiler 作为默认配置,希望作者兼容下❤️
初步排查是设置
modern-compiler后,函数走到 https://github.com/GitOfZGT/some-loader-utils/blob/master/src/getSass.js#L36 就不继续走了