tschaka1904
tschaka1904

Reputation: 1489

Tree-shaking and Angular-cli

As you may know, you can add global libraries to the scripts-property in the angular-cli.son.

I was wondering if these scripts are also taken into account for the tree-shaking?

Upvotes: 0

Views: 652

Answers (1)

Martin
Martin

Reputation: 16292

No. These are not taken into account when by WebPack tree shaking.

Only the files that are imoorted and bundled are tree shaken.

Note, WebPack tree shaking with Typescript has a lot of issues at the moment. You won't yet see the same benefits as Rollup, yet.

Upvotes: 1

Related Questions