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

https://github.com/lemonmade/preact-mini-compat


https://github.com/lemonmade/preact-mini-compat

Last synced: 5 months ago
JSON representation

Awesome Lists containing this project

README

          

# Preact compat demo

This repo shows the effects of a tree-shakeable version of `preact/compat`. `webpack.config.js` has comments showing the relevant configuration/ possible deoptimizations. Install dependencies and run `yarn/npm run build` to see the bundle analysis.

Running this on my machine, I got the following results for the built bundle:

- 5.69kb gzipped when using the [tree-shakeable compat](https://github.com/lemonmade/quilt/tree/main/packages/preact-mini-compat)
- 6.89kb gzipped when using the existing `preact/compat`