🌈🌈🌈 transform not module.(css|scss|less) to css module
yarn add vite-plugin-transform-css-modules -D
import { defineConfig } from 'vite'
import vitePluginTransformCssModules from 'vite-plugin-transform-css-modules';
// https://vitejs.dev/config/
export default defineConfig({
...
plugins: [
vitePluginTransformCssModules()
]
})