https://github.com/lemonmade/preact-mini-compat
https://github.com/lemonmade/preact-mini-compat
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/lemonmade/preact-mini-compat
- Owner: lemonmade
- Created: 2021-01-04T16:36:24.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-01-04T16:41:13.000Z (about 5 years ago)
- Last Synced: 2025-04-09T06:41:41.111Z (9 months ago)
- Language: JavaScript
- Size: 27.3 KB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-list - preact-mini-compat
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`