static _getUsedModules(compilation) {
    const usedModules = {}

    compilation
      .getStats()
      .toJson()
      .chunks.forEach((c) => {
        c.modules.forEach((m) => {
          m.reasons.forEach((r) => {
            usedModules[r.userRequest] = true
          })
        })
      })

    return usedModules
  }
/**
   * Returns the list of all modules in the bundle
   */
Returns the list of all modules in the bundle
Returns the list of all modules in the bundle
static _getUsedModules(compilation) {
    const usedModules = {}
    compilation
      .getStats()
      .toJson()
      .chunks.forEach((c) => {
        c.modules.forEach((m) => {
          m.reasons.forEach((r) => {
            usedModules[r.userRequest] = true
          })
        })
      })
    return usedModules
  }
static _getUsedModules ( compilation ) { const usedModules = { } compilation . getStats ( ) . toJson ( ) . chunks . forEach ( ( c ) => { c . modules . forEach ( ( m ) => { m . reasons . forEach ( ( r ) => { usedModules [ r . userRequest ] = true } ) } ) } ) return usedModules }
Returns the list of all modules in the bundle
Returns the list of all modules in the bundle