{"id":16439201,"url":"https://github.com/posva/store-code-split-demo","last_synced_at":"2026-05-12T21:34:42.698Z","repository":{"id":146341563,"uuid":"172906814","full_name":"posva/store-code-split-demo","owner":"posva","description":"demo to showcase ideal codesplit for a store like Vuex","archived":false,"fork":false,"pushed_at":"2019-04-18T08:25:53.000Z","size":59,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-05T16:52:53.453Z","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/posva.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},"funding":{"github":"posva"}},"created_at":"2019-02-27T11:57:17.000Z","updated_at":"2019-05-13T09:00:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"0b5c5641-0003-4737-896c-a52ff2fa64b3","html_url":"https://github.com/posva/store-code-split-demo","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/posva%2Fstore-code-split-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/posva%2Fstore-code-split-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/posva%2Fstore-code-split-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/posva%2Fstore-code-split-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/posva","download_url":"https://codeload.github.com/posva/store-code-split-demo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240756760,"owners_count":19852627,"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-11T09:08:28.357Z","updated_at":"2026-05-12T21:34:42.665Z","avatar_url":"https://github.com/posva.png","language":"JavaScript","funding_links":["https://github.com/sponsors/posva"],"categories":[],"sub_categories":[],"readme":"# Demo for (ideal) code splitting with Vuex\n\nThis is a demo repo to showcase that ideally, we could codesplit getters and actions per page (the page would be `src/usingModuleA`).\nFor it to work, it is necessary to split _actions_ and _getters_ from `index.js` which is imported by `store` into one or multiple files (`actions.js` and `getters.js`)\n\n## Instructions\n\nFirst try without changing anything\n\n```sh\nyarn\nyarn build\ngrep -Rl another dist # dist/1.js\n```\n\nThe unused function in `actions.js` gets discarded\n\nthen comment out the content in `src/index.js` and build again:\n\n```sh\nyarn\nyarn build\ngrep -Rl another dist # dist/1.js and dist/2.js\n```\n\nBoth files 1.js and 2.js include **all actions**\n\nUnfortunately, the same file cannot be code splitted into different bundles. Unused function can be removed though\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fposva%2Fstore-code-split-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fposva%2Fstore-code-split-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fposva%2Fstore-code-split-demo/lists"}