Skip to content

migrate on webpack built-in logger #358

Open
@alexander-akait

Description

@alexander-akait

Issue description

Migrate on built-in webpack logger API https://webpack.js.org/api/logging/

Technical info

  • Webpack Bundle Analyzer version: latest
  • Webpack version: any
  • Node.js version: any
  • npm/yarn version: any
  • OS: any

Debug info

Allow to filter and configure logger options from configuration(s) + allow to collect logs from stats

What other Webpack plugins were used?

Irrelevant

Activity

valscion

valscion commented on Jun 10, 2020

@valscion
Member

This would make webpack-bundle-analyzer only compatible with webpack v4.39.0 and forwards. Right now we're compatible with even webpack v3 if I remember correctly, so this would be a major version bump.

alexander-akait

alexander-akait commented on Jun 10, 2020

@alexander-akait
MemberAuthor

We can't avoid breaking change using:

const logger = logging.getLogger ? logging.getLogger('webpack-bundle-analyzer') : oldLogger;
valscion

valscion commented on Jun 10, 2020

@valscion
Member

Ah cool idea! That would be a possible idea.

jamesgeorge007

jamesgeorge007 commented on Jun 17, 2020

@jamesgeorge007
Member

I would love to give it a shot 🙌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Participants

    @valscion@alexander-akait@jamesgeorge007

    Issue actions

      migrate on webpack built-in logger · Issue #358 · webpack-contrib/webpack-bundle-analyzer