🤫husshhussh
🤫husshhusshOnePuppy
The 🤫 magazine
ReactFrontendchromeextensions

Why do I need a JavaScript Module Bundler in hushh Chrome extensions‍️

Get a detailed comparison of three popular JavaScript frameworks - Angular, React, and Vue.js. Understand the strengths, weaknesses, and use cases for each framework to make an informed decision for your next web development project.

Apoorv Bedmutha·November 12, 2022·2 min read
Why do I need a JavaScript Module Bundler in hushh Chrome extensions‍️

JavaScript Module Bundler in hussh Chrome Extensions

As of now Chrome Extensions inherently are built for the Vanilla Web Projects i.e The Pure HTML, CSS & JS builds. While working on the hushh.ai Chrome Extension, Me and the team wanted to take benefit of the React Library for quick and dynamic development of the frontend, however the Browser will not accept a Node Project (The Create-React-App project) directly as an extension. To solve this problem I had to find a way to convert the Node Project into a Vanilla Web Project, this is exactly where Javascript Bundlers like Webpack come in handy! Let me share with you what I learnt while integrating a JS bundler like Webpack in chrome extension:

  • JS Module bundlers are development tools that can combine large number of JS files with their dependencies into a single static JS file which is production ready.
  • To achieve this these bundler’s make use of a data structure called dependency graph, A dependency graph starts from an entry / source JS file provided and then tracks all the files this entry file is dependent on, so that when creating the bundled code, these dependencies are also added and linked properly.
  • Dependencies can include CSS, Images even Web fonts, if a JS file is dependent on another JS file, then the dependencies are tracked recursively. This also ensures that only necessary files are included in the production build
  • The aim of these module bundlers is to make the bundle as small as possible, often with just 1 JS file, hence now we do not need to attach 10 different JS scripts to the website but rather just 1 bundled JS is enough
  • When combining the JS files, bundlers often optimise the performance via code splitting, hot module replacement, error logging etc
  • While doing dependency resolution, each file is assigned a unique id in order to resolve naming conflicts
  • Dependency resolution also helps in maintaining a dependency order, i.e. in what order should which dependencies be loaded in order to avoid errors. (reminds me of topo-sort)
  • Popular Bundlers: browserify, esbuild, parcel, rollup, webpack (most popular)

Hope this introduction helps you to become a better dev, since it certainly helped me. PS: also attaching some great resources to learn more as always

Happy hussh Coding 🤫

vectoDatabaseBrands

Apoorv Bedmutha (SDE @hushh)

References: Link to the post
Link-1 Link-1 Link-1

The 🤫 hussh magazine

Written by Apoorv Bedmutha, and built to read beautifully here — and to travel to 🤫 One on your phone, your glasses, and visionOS, as one immersive magazine you own.

More from the magazine →Back to top ↑

Keep reading

More stories from the magazine

August 7, 2026

Every Scope Resolves Now: A Systems Review of the Consent Fabric

A full engineering accounting of PCHP and the fabric that serves it: the registry's growth from 47 to 263 scopes, the resolver that went from 8 hand-mapped bindings to resolution by convention, the pseudonym fix that stopped telling subscribers who you are, the economics of a millicent handshake, and a plain ledger of everything that is still not real.

August 7, 2026

Everything That Broke Was Already Written

A systems engineering reflection on one night of shipping, in which every defect turned out to be correct code wired to nothing, and what that says about building software when an agent writes forty four percent of the commits.

August 7, 2026

We Did Not Invent Our All-Hands

A thank-you to Gokul Rajaram, with the receipts. What we took from his write-up on running an all-hands unchanged, the four things we changed and why those changes are ours rather than his advice, and the honest note that we are building an agent to do the chief-of-staff job precisely so we never hire an operations team.

🤫husshhussh

Product

  • Agent One
  • The One app
  • Pricing
  • Claim your One

Yellow Pages

  • The Yellow Pages
  • Find a local expert
  • Discover in the feed

Business & enterprise

  • For business
  • For the enterprise
  • Partner portal
  • Developers

Watch, read & learn

  • The feed
  • Blog
  • Academy
  • Guides

Company & open

  • About
  • Careers
  • Contact
  • Sitemap

Trust, rights & gratitude

  • The Hushh Protocol
  • Data-rights landscape
  • Gratitude

🤫 Private Agent One is free for every American citizen. We do not sell your data, your attention, or your contacts. Company and product names are used to describe interoperability only and do not imply affiliation or endorsement. Certifications described as “in pursuit” are not held today.

Copyright © 2026 Hushh Technologies Corporation. All rights reserved.

Privacy PolicyTerms of UseYour data rightsAccessibilitySite Map

🇺🇸United States