Skip to content

Instantly share code, notes, and snippets.

@rpivo
Last active July 9, 2021 22:54
Show Gist options
  • Save rpivo/9a37da348ccb814fdf02d195a2362867 to your computer and use it in GitHub Desktop.
Save rpivo/9a37da348ccb814fdf02d195a2362867 to your computer and use it in GitHub Desktop.
Bundling Source Code With Deno's Built-in Bundler

Bundling Source Code With Deno's Built-in Bundler

deno bundle followed by the entry file will create a bundle.

$ deno bundle src/main.ts

The above will output the result to standard out rather than a file.

To save this output to a file, you can supply a second argument that is the path of the output file.

$ deno bundle src/main.ts main.js

References

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment