Deno 2.4: deno bundle is back | Deno
Briefly

Deno 2.4 restores the deno bundle subcommand for creating single-file JavaScript and TypeScript bundles that function on both server and browser platforms. It supports npm and JSR dependencies, with features like automatic tree shaking and minification using esbuild. A new flag, --unstable-raw-imports, allows for linking non-JavaScript files directly into the module graph. This improves the importing of data files, while future updates plan to introduce programmatic bundling APIs and plugins for custom build processing.
Deno 2.4 restores the deno bundle subcommand for creating single-file JavaScript bundles from JavaScript or TypeScript, providing support for server-side and browser platforms.
The new Deno 2.4 allows for linking data files into the JavaScript module graph with the --unstable-raw-imports flag, simplifying non-JavaScript file imports.
Read at Deno
[
|
]