{"id":19069576,"url":"https://github.com/srect/webpack5-ts-react","last_synced_at":"2025-07-20T20:33:34.132Z","repository":{"id":114173330,"uuid":"385667554","full_name":"sRect/webpack5-ts-react","owner":"sRect","description":"webpack5+ts+react","archived":false,"fork":false,"pushed_at":"2021-07-29T13:00:01.000Z","size":270,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-22T03:42:00.327Z","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/sRect.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-07-13T16:25:46.000Z","updated_at":"2021-07-29T13:00:04.000Z","dependencies_parsed_at":null,"dependency_job_id":"9a604073-a83c-47e4-9e86-1ddd887ce9ba","html_url":"https://github.com/sRect/webpack5-ts-react","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sRect/webpack5-ts-react","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sRect%2Fwebpack5-ts-react","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sRect%2Fwebpack5-ts-react/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sRect%2Fwebpack5-ts-react/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sRect%2Fwebpack5-ts-react/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sRect","download_url":"https://codeload.github.com/sRect/webpack5-ts-react/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sRect%2Fwebpack5-ts-react/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266194377,"owners_count":23890981,"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-09T01:14:49.082Z","updated_at":"2025-07-20T20:33:34.109Z","avatar_url":"https://github.com/sRect.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## ts的编译方式\n\n1. ts-loader 编译的时候可以进行类型检查，适合新项目，编译比较慢\n```\nnpm i ts-loader -D\n```\n2. babel-loader @babel/preset-typescript等 编译的时候不可以进行类型检查，适合老项目\n3. awesome-typescript-loader 性能比ts-loader高一些，可以把类型检查放在单独的进程中检查，效率高一些\n4. fork-ts-checker-webpack-plugin + ts-loader  fork是开启子进程\n\n\n\n## lint\n- tslint 逐渐废弃\n- eslint 社区通用\n\n```\nnpm i eslint @typescript-eslint/eslint-plugin@latest @typescript-eslint/parser@latest eslint-plugin-react@latest -D\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsrect%2Fwebpack5-ts-react","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsrect%2Fwebpack5-ts-react","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsrect%2Fwebpack5-ts-react/lists"}