{"id":19238529,"url":"https://github.com/tmpfs/spack-tree-shaking","last_synced_at":"2025-09-10T00:15:58.038Z","repository":{"id":66127929,"uuid":"398471690","full_name":"tmpfs/spack-tree-shaking","owner":"tmpfs","description":"MVP for possible tree shaking bug","archived":false,"fork":false,"pushed_at":"2021-08-25T00:44:35.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-05T02:12:16.178Z","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/tmpfs.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-08-21T05:09:52.000Z","updated_at":"2021-08-25T00:44:37.000Z","dependencies_parsed_at":"2023-03-10T15:15:15.572Z","dependency_job_id":null,"html_url":"https://github.com/tmpfs/spack-tree-shaking","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmpfs%2Fspack-tree-shaking","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmpfs%2Fspack-tree-shaking/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmpfs%2Fspack-tree-shaking/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmpfs%2Fspack-tree-shaking/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tmpfs","download_url":"https://codeload.github.com/tmpfs/spack-tree-shaking/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240324059,"owners_count":19783453,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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-11-09T16:33:13.323Z","updated_at":"2025-02-23T13:52:51.555Z","avatar_url":"https://github.com/tmpfs.png","language":"JavaScript","readme":"# Tree Shaking Bug?\n\nThis repo reproduces an issue observed when compiling a much larger project with `spack`.\n\nTo build run `yarn install` and `npx spack`.\n\nThe compiled bundle does not include the code for the `memoize` function which is imported in `src/util.js`, see the output in `dist/main.js`.\n\nThis in turn leads to a `ReferenceError` at runtime:\n\n```\nUncaught ReferenceError: memoize is not defined\n```\n\nI suspect this is a bug in the tree shaking algorithm.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftmpfs%2Fspack-tree-shaking","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftmpfs%2Fspack-tree-shaking","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftmpfs%2Fspack-tree-shaking/lists"}