---
title: "Discussion on \"How to bundle a tree-shakable typescript library for web with tsup and publish with npm\" | Hashnode"
description: "Discussion on \"How to bundle a tree-shakable typescript library for web with tsup and publish with npm\". Thinking of the vast frontend ecosystem, for the most part, I don’t need to implement stuff on my own. The majority of the time, I google a particular problem and most of the time I find a library or stack-overflow answer, Bingo. But there are times ..."
url: "https://hashnode.com/posts/how-to-bundle-a-tree-shakable-typescript-library-for-web-with-tsup-and-publish-with-npm/631a673700230a29830dd226"
---

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

Discussion

# [How to bundle a tree-shakable typescript library for web with tsup and publish with npm](https://orabazu.hashnode.dev/how-to-bundle-a-tree-shakable-typescript-library-for-web-with-tsup-and-publish-with-npm?utm_source=hashnode&utm_medium=feed)

Thinking of the vast frontend ecosystem, for the most part, I don’t need to implement stuff on my own. The majority of the time, I google a particular problem and most of the time I find a library or stack-overflow answer, Bingo. But there are times ...

Sep 8, 2022 · 10 min read · orabazu.hashnode.dev  
Updated Sep 13, 2022  
Read the article

-   [#esbuild](https://hashnode.com/tag/esbuild)
-   [#typescript](https://hashnode.com/tag/typescript)
-   [#npm](https://hashnode.com/tag/npm)
-   [#tsup](https://hashnode.com/tag/tsup)

## Written by

[orhun özer](https://hashnode.com/@orabazu)

@orabazu

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

frontend

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
