Usage

deno bundle [OPTIONS] SOURCE_FILE [OUT_FILE]

Preview bundle

This does not persist anything - it just prints.

$ deno bundle index.ts

Write bundle

$ deno bundle index.ts build/bundle.js

Or if you refer:

$ deno bundle src/index.ts dist/myApp.bundle.ts

Write and watch bundle

Watch for changes continuously using the --watch flag.

$ deno bundle --unstable --watch index.ts dist/bundle.js

This is unstable. See issue.

Bundle a URL

The manual says you pass a URL too, if you want to do that for some reason.

$ deno bundle https://deno.land/std@0.85.0/examples/colors.ts colors.bundle.js