Skip to content

Latest commit

 

History

History
19 lines (10 loc) · 694 Bytes

File metadata and controls

19 lines (10 loc) · 694 Bytes

experiment-treeshake-directlinejs

Experiment on tree-shaking botframework-directlinejs

How to setup/run

Initially, cd component && npm install.

For subsequent runs, npm test.

Observations

When importing from the root, it will import botframework-directlinejs, but not using it. This produce almost the same build when compared to import 'botframework-directlinejs'.

When importing from named exports, it will not import botframework-directlinejs at all.

image

As in the table above, just importing botframework-directlinejs incur costs, even without using it.