GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — commonjs tree shaking not work in webpack5 · Issue #14054 · webpack/webpack

commonjs tree shaking not work in webpack5 #14054

New issue
Copy link
New issue
Copy link
Closed
#21003
Closed
commonjs tree shaking not work in webpack5#14054
#21003
Copy link
Labels
webpack-5Concerns the webpack 5 line

Description

@ishowman
ishowman
opened on Aug 24, 2021
Issue body actions

Bug report

What is the current behavior?
all the methods defined in commonjs module will be include in dist file

If the current behavior is a bug, please provide the steps to reproduce.

This is the repo for reproduce。

What is the expected behavior?
only include used methods in my commonjs module

Other relevant information:
webpack version:

  • "webpack": "^5.51.1",
  • "webpack-cli": "^4.8.0"
    Node.js version: v12.14.0
    Operating System: Win 10
    Additional tools: null
Reacted by Nico Neumann

Activity

  1. alexander-akait commented on Aug 24, 2021

    @alexander-akait
    alexander-akait
    on Aug 24, 2021
    Member
    More actions

    Not implemented yet https://github.com/webpack/webpack/projects/5#card-30291446, but we strongly recommend migrate on ECMA modules

    Reacted by Dustin L. Dodson
  2. webpack-bot
    added
    webpack-5Concerns the webpack 5 line
    enhancement
    on Aug 24, 2021
  3. ishowman commented on Sep 13, 2021

    @ishowman
    ishowman
    on Sep 13, 2021
    Author
    More actions

    Not implemented yet https://github.com/webpack/webpack/projects/5#card-30291446, but we strongly recommend migrate on ECMA modules

    I know ECMA modules is the future. But there're still lots of npm packages are commonjs modules, which increase the size of my project.

    Reacted by Dustin L. Dodson
  4. webpack-bot commented on Dec 14, 2021

    @webpack-bot
    webpack-bot
    on Dec 14, 2021
    Contributor
    More actions

    This issue had no activity for at least three months.

    It's subject to automatic issue closing if there is no activity in the next 15 days.

  5. webpack-bot
    added
    status: staleNo author response after a needs: request; close candidate
    on Dec 14, 2021
  6. alexander-akait commented on Dec 14, 2021

    @alexander-akait
    alexander-akait
    on Dec 14, 2021
    Member
    More actions

    bump

  7. webpack-bot
    removed
    status: staleNo author response after a needs: request; close candidate
    on Dec 14, 2021
  8. webpack-bot
    added
    status: staleNo author response after a needs: request; close candidate
    on Mar 15, 2022
  9. webpack-bot
    closed this as completedon Mar 30, 2022
  10. webpack-bot commented on Mar 30, 2022

    @webpack-bot
    webpack-bot
    on Mar 30, 2022
    Contributor
    More actions

    Issue was closed because of inactivity.

    If you think this is still a valid issue, please file a new issue with additional information.

  11. alexander-akait
    reopened this on Mar 31, 2022
  12. webpack-bot
    removed
    status: staleNo author response after a needs: request; close candidate
    on Mar 31, 2022
  13. alexander-akait commented on Mar 31, 2022

    @alexander-akait
    alexander-akait
    on Mar 31, 2022
    Member
    More actions

    Still make sense

  14. webpack-bot
    added
    status: staleNo author response after a needs: request; close candidate
    on Jun 30, 2022
  15. webpack-bot
    closed this as completedon Jul 15, 2022
  16. alexander-akait
    reopened this on Jul 16, 2022
  17. webpack-bot
    removed
    status: staleNo author response after a needs: request; close candidate
    on Jul 16, 2022
  18. webpack-bot
    added
    status: staleNo author response after a needs: request; close candidate
    on Oct 16, 2022
  19. webpack-bot
    closed this as completedon Oct 31, 2022
  20. alexander-akait
    reopened this on Nov 1, 2022
  21. webpack-bot
    removed
    status: staleNo author response after a needs: request; close candidate
    on Nov 1, 2022
  22. alexander-akait
    closed this as completedin #21003on May 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    webpack-5Concerns the webpack 5 line

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.