
Security News
Happy Birthday, Shai-Hulud
It has been one year since Shai-Hulud made its first appearance on npm.
@distilled.cloud/cloudflare-bundler
Advanced tools
@distilled.cloud/cloudflare-bundlerEffect-native Cloudflare Workers bundler built around a common core API and a rolldown implementation.
Support for other bundlers is coming soon.
bun add @distilled.cloud/cloudflare-bundler effect@beta rolldown
import * as NodeFileSystem from "@effect/platform-node/NodeFileSystem";
import * as NodePath from "@effect/platform-node/NodePath";
import * as Effect from "effect/Effect";
import * as Layer from "effect/Layer";
import { Bundler } from "@distilled.cloud/cloudflare-bundler";
import { RolldownBundler } from "@distilled.cloud/cloudflare-bundler/rolldown";
const program = Effect.gen(function* () {
const bundler = yield* Bundler;
return yield* bundler.build({
main: "./src/index.ts",
rootDir: "/absolute/path/to/project",
outDir: "/absolute/path/to/project/dist",
minify: true,
cloudflare: {
compatibilityDate: "2026-03-10",
compatibilityFlags: ["nodejs_compat"],
additionalModules: {
rules: [{ type: "CompiledWasm", globs: ["**/*.wasm"] }],
},
},
});
});
const layer = Layer.provide(RolldownBundler, Layer.mergeAll(NodeFileSystem.layer, NodePath.layer));
const result = await Effect.runPromise(Effect.provide(program, layer));
console.log(result.directory, result.main, result.modules);
build() returns an Output with:
directory: absolute output directorymain: relative path to the entry chunk within that directorymodules: all emitted modules, including the main ESM chunk and supported asset modulesformat: always "esm" in v1warnings: normalized build warningsThe public API is centered on:
Bundler in src/Bundler.tsOutput in src/Output.tsModule in src/Module.tsThe current backend is:
RolldownBundler from @distilled.cloud/cloudflare-bundler/rolldownmainrootDir, outDir, define, external, minify, keepNames, tsconfig, sourcemapcloudflare.compatibilityDate, cloudflare.compatibilityFlagscloudflare.additionalModules.rules, cloudflare.additionalModules.preserveFileNamescloudflare:* externalsunenv and Cloudflare presets__STATIC_CONTENT_MANIFESTThis package lives in the distilled-cloudflare monorepo. From the repository root:
bun install
bun run format
bun run lint
bun run build
bun run test
MIT
FAQs
Effect-native bundler for Cloudflare Workers.
The npm package @distilled.cloud/cloudflare-bundler receives a total of 32 weekly downloads. As such, @distilled.cloud/cloudflare-bundler popularity was classified as not popular.
We found that @distilled.cloud/cloudflare-bundler demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.

Security News
It has been one year since Shai-Hulud made its first appearance on npm.

Research
/Security News
Operators behind PolinRider used a compromised GitHub account to plant malware in four development versions of a Packagist package with 700,000+ downloads.

Security News
GitHub Actions now supports cache-mode, a least-privilege control on the Actions cache aimed at the cache poisoning technique behind recent compromises.