An open API service indexing awesome lists of open source software.

https://github.com/compulim/experiment-treeshake-directlinejs

Experiment on tree-shaking botframework-directlinejs
https://github.com/compulim/experiment-treeshake-directlinejs

Last synced: 4 days ago
JSON representation

Experiment on tree-shaking botframework-directlinejs

Awesome Lists containing this project

README

        

# 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](https://user-images.githubusercontent.com/1622400/219450166-5935eea4-4646-4f41-bfc1-fe7522faf990.png)

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