🚀 DAY 5 OF LAUNCH WEEK:Introducing Webhook Events for Alert Changes.Learn more
Socket
Book a DemoInstallSign in
Socket

@ms-cloudpack/bundler

Package Overview
Dependencies
Maintainers
3
Versions
449
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ms-cloudpack/bundler

An abstraction to bundle source code.

npmnpm
Version
0.27.3
Version published
Maintainers
3
Created
Source

@ms-cloudpack/bundler

This library provides Cloudpack's implementation of an abstraction on bundling a package, assuming that the package is conformant.

Rather than directly depending on Webpack, rollup, or esbuild with large amounts of custom configuration, having an abstraction around bundling provides constraints around having common inputs/outputs.

This enforces the code follow consistent constraints, while also ensuring the output can be consumed in the browser or in node depending on supported environments.

Abstraction also allows us to use the right tool for the job. The right tool depends on priorities and capabilities. For dev builds we want the fastest tool, while for production we want optimal output.

Details

The Cloudpack bundler abstraction is simple and constrained on purpose:

  • Consume a standard package (app or library) with a minimum set of requirements.
  • Emits standard ESM bundle.
  • Leverages package.json and convention as much as possible:

There are three output modes:

  • library mode - produces a bundle of source which externalizes dependencies and is directly consumable by the target (browser or node), which can resolve the dependencies through an import map in the browser or through module resolution in node. The source is unminified.
  • production mode - produces a bundle of minified source which includes dependencies and is also similarly consumed.
  • development mode - like production mode, but not minified.

FAQs

Package last updated on 08 Nov 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts