loading...
Cover image for Getting Started with Denopack

Getting Started with Denopack

shadowtime2000 profile image shadowtime2000 Updated on ・1 min read

denopack is a module bundler built on top of rollup that supports tree shaking & minification.

Installation

If you want to use deno.land/x use:

deno run --allow-run --allow-read https://deno.land/x/denopack@0.10.0/install.ts
Enter fullscreen mode Exit fullscreen mode

If you want to use nest.land use:

deno run --allow-run --allow-read https://x.nest.land/denopack@0.10.0/install.ts
Enter fullscreen mode Exit fullscreen mode

Config

Your config should be located under denopack.config.ts or rollup.config.ts.

Advantages Over Built-In Deno Bundling

All deno bundle does is download and copy every file that is used by the file you are bundling. denopack minifies the output and supports tree shaking for a lower bundle size.

GitHub logo denofn / denopack

The bundling and minification toolset, made for Deno

Discussion

pic
Editor guide
Collapse
shadowtime2000 profile image
shadowtime2000 Author

Sorry for the cover image, dev.to won't let me removed it. It was my attempt at putting the denopack logo as the cover image.