{"id":19501313,"url":"https://github.com/self-denial-cy/rollup-exercise","last_synced_at":"2025-02-25T21:26:34.429Z","repository":{"id":144544400,"uuid":"569617231","full_name":"self-denial-cy/rollup-exercise","owner":"self-denial-cy","description":"personal rollup exercise","archived":false,"fork":false,"pushed_at":"2022-12-07T09:51:28.000Z","size":35,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-08T10:14:44.398Z","etag":null,"topics":["babel","polyfill","rollup"],"latest_commit_sha":null,"homepage":"","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/self-denial-cy.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":"2022-11-23T08:33:07.000Z","updated_at":"2022-12-07T09:54:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"54dd4204-eb9d-454b-bbd9-7cba69fa918e","html_url":"https://github.com/self-denial-cy/rollup-exercise","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/self-denial-cy%2Frollup-exercise","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/self-denial-cy%2Frollup-exercise/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/self-denial-cy%2Frollup-exercise/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/self-denial-cy%2Frollup-exercise/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/self-denial-cy","download_url":"https://codeload.github.com/self-denial-cy/rollup-exercise/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240749145,"owners_count":19851415,"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":["babel","polyfill","rollup"],"created_at":"2024-11-10T22:12:19.071Z","updated_at":"2025-02-25T21:26:34.369Z","avatar_url":"https://github.com/self-denial-cy.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rollup-exercise\n\n- [exercise1](./exercise1)    Js类库打包配置示例（引入非全局 polyfill，不污染全局环境）\n  - umd 包：第三方依赖和 polyfill、babel 的辅助函数都直接 bundled 了，缺点是包比较大\n  - cjs 和 es 包：第三方依赖和 polyfill、babel 的辅助函数都抽离出来了，搭配上 webpack、rollup 等工具 very good\n- [exercise2](./exercise2)    Vue 组件库打包配置示例\n  - element-plus、antd、iview 基本上都不提供 polyfill，将 polyfill 交给宿主环境来实现，使用文档写清楚如何使用、浏览器兼容列表、必要的 polyfill 即可\n  - 样式文件也可以构建出来，有两种方案：1.在单独样式文件中维护；2.在 SFC 的 style 块进行维护( iview 的方案是在单独样式文件中维护，且最后通过 gulp 单独处理 )","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fself-denial-cy%2Frollup-exercise","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fself-denial-cy%2Frollup-exercise","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fself-denial-cy%2Frollup-exercise/lists"}