Skip to content

software-mansion-labs/is-tree-shakable

Repository files navigation

is-tree-shakable

This is a command-line tree-shakability doctor for JavaScript packages. Compared to alternatives, it not only reports whether a package is tree-shakable but also pinpoints the root causes of non-tree-shakability in the JavaScript or TypeScript source.

Getting started

  1. Ensure that your package’s package.json file specifies "main" or "module".

  2. If your package is built, enable source-map generation. For TypeScript, this is done via "sourceMap".

Usage

  1. If your package is built, run the build step.

  2. Run is-tree-shakable in the package root:

    npx is-tree-shakable

About

A command-line tree-shakability doctor for JavaScript packages.

Resources

License

Stars

Watchers

Forks

Contributors 2

  •  
  •