message: fix: setStyle
diff: +import * as fs from 'fs'
  +import { join } from 'path'
  import * as WebpackChain from 'webpack-chain'
  import { StyleOptions } from 'ssr-types'
  import { loadConfig } from '../loadConfig'
  const setStyle = (isDev: boolean, chain: WebpackChain, reg: RegExp, options: StyleOptions) => {
  const MiniCssExtractPlugin = require('mini-css-extract-plugin')
  - const getCSSModuleLocalIdent = require('react-dev-utils/getCSSModuleLocalIdent')
  const loadModule = require.resolve
  const { css } = loadConfig()
  const postCssPlugins = css?.().loaderOptions?.postcss?.plugins ?? []
  const { include, exclude, modules, importLoaders, loader } = options
  -
  + const cssloaderOptions = {
  + importLoaders: importLoaders,
  + modules: modules
  + }
  + const isReact = fs.existsSync(join(process.cwd(), './node_modules/react-dev-utils'))
  + if (isReact) {
  + // @ts-expect-error
  + cssloaderOptions.getCSSModuleLocalIdent = require('react-dev-utils/getCSSModuleLocalIdent')
  + }
  chain.module
  .rule(options.rule)
  .test(reg)
  @@ -30,11 +39,7 @@ const setStyle = (isDev: boolean, chain: WebpackChain, reg: RegExp, options: Sty
  .end()
  .use('css-loader')
  .loader(loadModule('css-loader'))
  - .options({
  - importLoaders: importLoaders,
  - modules: modules,
  - getLocalIdent: getCSSModuleLocalIdent
  - })
  + .options(cssloaderOptions)
  .end()
  .use('postcss-loader')
  .loader(loadModule('postcss-loader'))
  