{"id":17351270,"url":"https://github.com/apidcloud/tree-shaking-webpack","last_synced_at":"2025-03-27T12:24:42.779Z","repository":{"id":67595706,"uuid":"177356232","full_name":"Apidcloud/tree-shaking-webpack","owner":"Apidcloud","description":"A minimum repro for webpack's tree shaking (not working for now)","archived":false,"fork":false,"pushed_at":"2019-03-27T06:20:51.000Z","size":64,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-01T16:48:41.931Z","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/Apidcloud.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":"2019-03-24T01:03:18.000Z","updated_at":"2019-03-24T04:23:07.000Z","dependencies_parsed_at":"2023-02-22T09:31:00.945Z","dependency_job_id":null,"html_url":"https://github.com/Apidcloud/tree-shaking-webpack","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/Apidcloud%2Ftree-shaking-webpack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Apidcloud%2Ftree-shaking-webpack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Apidcloud%2Ftree-shaking-webpack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Apidcloud%2Ftree-shaking-webpack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Apidcloud","download_url":"https://codeload.github.com/Apidcloud/tree-shaking-webpack/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245842713,"owners_count":20681388,"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-10-15T17:09:27.039Z","updated_at":"2025-03-27T12:24:42.769Z","avatar_url":"https://github.com/Apidcloud.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tree-shaking-webpack\nA minimum repro for webpack's tree shaking (**not working for now**)\n\n## Goal\nBundle every file from each package (`/src` and `/another-package/src`) in their own bundle (`core` and `consumer` respectively).\n\n`another-package` only uses one of the functions (`cube`), so its bundle (`consumer`) **should not** have the other functions exported by `core` (i.e., the bundle from the files from `/src`).\n\n## Issue\nDespite `another-package` not consuming any other function (other than `cube`), its bundle `consumer` is still showing `someUnusedFn` that is exported by `core`.\n\nSimilar issues:\n- https://stackoverflow.com/questions/47663486/webpack-3-babel-and-tree-shaking-not-working?rq=1\n- https://stackoverflow.com/questions/48599352/webpack-including-unused-exports-in-final-bundle-not-tree-shaking\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapidcloud%2Ftree-shaking-webpack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fapidcloud%2Ftree-shaking-webpack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapidcloud%2Ftree-shaking-webpack/lists"}