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
- Host: GitHub
- URL: https://github.com/compulim/experiment-treeshake-directlinejs
- Owner: compulim
- Created: 2023-02-16T18:02:28.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-02-16T18:11:11.000Z (over 2 years ago)
- Last Synced: 2025-02-17T13:11:27.052Z (3 months ago)
- Language: JavaScript
- Size: 8.79 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.

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