function chunkHasCss(chunk, chunkGraph) {
        // this function replace:
        // const chunkHasCss = require("webpack/lib/css/CssModulesPlugin").chunkHasCss;
        return !!chunkGraph.getChunkModulesIterableBySourceType(
          chunk,
          "css/mini-extract"
        );
      }
@param {Chunk} chunk chunk
@param {ChunkGraph} chunkGraph chunk graph
@returns {boolean} true, when the chunk has css