Skip to content

Commit 4bd3cf3

Browse files
committed
Add tree shaking information
1 parent d8ba662 commit 4bd3cf3

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,3 +266,10 @@ A use case is Server-Side-Rendering:
266266
- And when all promises have revolved, it is guessable that all the data are ready for the application to rerender again
267267
268268
For more information, see the corresponding source code: <https://github.com/Coreoz/simple-http-rest-client/tree/master/src/lib/promise/PromiseMonitor.ts>
269+
270+
Tree shaking
271+
------------
272+
This library supports tree shaking: components from this library that are not used will not end in your final build as long as your bundler supports this feature.
273+
For example, if the component `SynchronizedHttpPromise` is not used, it will not be packaged in your final application build.
274+
275+
[Vite](https://vitejs.dev/) is a great bundler to achieve this.

0 commit comments

Comments
 (0)