---
title: "Discussion on \"How to trim duplicates from your Webpack bundle?\" | Hashnode"
description: "Discussion on \"How to trim duplicates from your Webpack bundle?\". In my quest to optimize the client bundle, I stumbled upon an interesting in-house mechanism that the node package manager uses to keep the bundle leaner and also how webpack employs aliases to avoid duplicacy. Bloating bundles must be avoided by fro..."
url: "https://hashnode.com/posts/how-to-trim-duplicates-from-your-webpack-bundle/6392198f17dceb85f5ab355e"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to trim duplicates from your Webpack bundle?](https://mohammedsas.hashnode.dev/how-to-trim-duplicates-from-your-webpack-bundle?utm_source=hashnode&utm_medium=feed)

In my quest to optimize the client bundle, I stumbled upon an interesting in-house mechanism that the node package manager uses to keep the bundle leaner and also how webpack employs aliases to avoid duplicacy. Bloating bundles must be avoided by fro...

Dec 8, 2022 · 3 min read · mohammedsas.hashnode.dev  
Read the article

-   [#webpack](https://hashnode.com/tag/webpack)
-   [#npm](https://hashnode.com/tag/npm)
-   [#optimization](https://hashnode.com/tag/optimization)
-   [#client](https://hashnode.com/tag/client)

## Written by

[Mohammed Ashraf](https://hashnode.com/@mohammedsas)

@mohammedsas

  
[View profile](https://hashnode.com/@mohammedsas)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
