{"id":16942020,"url":"https://github.com/samouri/preact-shakability","last_synced_at":"2026-05-21T14:16:00.450Z","repository":{"id":71231911,"uuid":"421962914","full_name":"samouri/preact-shakability","owner":"samouri","description":null,"archived":false,"fork":false,"pushed_at":"2021-10-27T20:40:46.000Z","size":3537,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-21T06:45:30.027Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/samouri.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-10-27T20:22:28.000Z","updated_at":"2023-03-04T04:32:54.000Z","dependencies_parsed_at":"2023-02-22T14:16:28.458Z","dependency_job_id":null,"html_url":"https://github.com/samouri/preact-shakability","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/samouri/preact-shakability","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samouri%2Fpreact-shakability","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samouri%2Fpreact-shakability/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samouri%2Fpreact-shakability/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samouri%2Fpreact-shakability/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/samouri","download_url":"https://codeload.github.com/samouri/preact-shakability/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samouri%2Fpreact-shakability/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33303332,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-21T12:23:38.849Z","status":"ssl_error","status_checked_at":"2026-05-21T12:22:11.673Z","response_time":62,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-13T21:10:55.329Z","updated_at":"2026-05-21T14:16:00.422Z","avatar_url":"https://github.com/samouri.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Preact tree shakability\n\nGiven an esm import from `preact/compat`, it would be ideal if everything unneeded could be DCEd away.\n\nFor example, given this simple input, I am seeing a much larger output than expected.\n\n```js\nimport { forwardRef } from 'preact/compat';\n```\n\nIn order to test this, I copy/pasted the functions used for [forwardRef](https://github.com/preactjs/preact/blob/master/compat/src/forwardRef.js) and measured the bundle size against the former.\n\n## Results\n\n- [current](./current/bundled.js): 15K\n- [isolated](./isolated/bundled.js): 8.6K\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamouri%2Fpreact-shakability","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamouri%2Fpreact-shakability","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamouri%2Fpreact-shakability/lists"}