{"id":20514522,"url":"https://github.com/rollup/rollup-starter-code-splitting","last_synced_at":"2025-04-07T06:07:23.223Z","repository":{"id":65989793,"uuid":"120702655","full_name":"rollup/rollup-starter-code-splitting","owner":"rollup","description":"Starter project with code-splitting and dynamic imports, for modern and legacy browsers","archived":false,"fork":false,"pushed_at":"2024-07-08T22:02:01.000Z","size":46,"stargazers_count":250,"open_issues_count":5,"forks_count":30,"subscribers_count":13,"default_branch":"master","last_synced_at":"2025-03-31T04:06:25.363Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://rollup-starter-code-splitting.surge.sh","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rollup.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2018-02-08T02:58:24.000Z","updated_at":"2025-03-19T03:29:15.000Z","dependencies_parsed_at":"2024-01-26T21:02:04.428Z","dependency_job_id":"4e9ed789-4f50-4c41-904c-e3c60d3f5482","html_url":"https://github.com/rollup/rollup-starter-code-splitting","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/rollup%2Frollup-starter-code-splitting","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rollup%2Frollup-starter-code-splitting/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rollup%2Frollup-starter-code-splitting/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rollup%2Frollup-starter-code-splitting/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rollup","download_url":"https://codeload.github.com/rollup/rollup-starter-code-splitting/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247601448,"owners_count":20964864,"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-15T21:16:57.980Z","updated_at":"2025-04-07T06:07:23.205Z","avatar_url":"https://github.com/rollup.png","language":"JavaScript","readme":"# rollup-starter-code-splitting\n\nThis repo contains a bare-bones example of how to create an application using Rollup, with code-splitting and dynamic imports.\n\n\n## Getting started\n\nClone this repository and install its dependencies:\n\n```bash\ngit clone https://github.com/rollup/rollup-starter-code-splitting\ncd rollup-starter-code-splitting\nnpm install\n```\n\nRun `npm run build` to create two versions of the app, as defined in rollup.config.js:\n\n* `public/module` contains native JavaScript modules, for browsers that support them\n* `public/nomodule` contains [SystemJS](https://github.com/systemjs/systemjs) modules, for legacy browsers\n\nThe `public/index.html` file contains two sets of `\u003cscript\u003e` tags, one for each version.\n\nNotice that the seven modules in our `src` folder have been optimised into four modules — two for the 'entry points', and two more for code that is shared by multiple entry points or is loaded dynamically. Rollup will automatically create chunks in such a way that no code is duplicated between them.\n\nBecause it outputs native JavaScript modules, there is zero bundler overhead when targeting modern browsers.\n\n\n## Building and serving\n\n`npm run build` builds the application, along with sourcemap files for debugging.\n\n`npm start` launches a server, using [serve](https://github.com/zeit/serve). Navigate to [localhost:5000](http://localhost:5000).\n\n## License\n\n[MIT](LICENSE).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frollup%2Frollup-starter-code-splitting","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frollup%2Frollup-starter-code-splitting","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frollup%2Frollup-starter-code-splitting/lists"}