{"id":21989050,"url":"https://github.com/imweb/fis3-hook-fix","last_synced_at":"2025-03-23T02:44:25.158Z","repository":{"id":57237199,"uuid":"91072284","full_name":"imweb/fis3-hook-fix","owner":"imweb","description":"fix something of fis3 build","archived":false,"fork":false,"pushed_at":"2017-06-06T09:40:46.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":29,"default_branch":"master","last_synced_at":"2025-03-01T00:13:54.343Z","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/imweb.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}},"created_at":"2017-05-12T09:01:46.000Z","updated_at":"2017-05-12T10:01:07.000Z","dependencies_parsed_at":"2022-08-26T14:04:18.886Z","dependency_job_id":null,"html_url":"https://github.com/imweb/fis3-hook-fix","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/imweb%2Ffis3-hook-fix","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imweb%2Ffis3-hook-fix/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imweb%2Ffis3-hook-fix/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imweb%2Ffis3-hook-fix/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/imweb","download_url":"https://codeload.github.com/imweb/fis3-hook-fix/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245048276,"owners_count":20552483,"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-29T19:27:32.368Z","updated_at":"2025-03-23T02:44:25.129Z","avatar_url":"https://github.com/imweb.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fis3-hook-fix\nfix something of fis3 build\n\n## fix addSameNameRequire\nfis 没有提供接口设置文件的后缀名，默认把 `xxx.yy` 的 `.yy` 作为文件后缀名\u003cbr\u003e\n这也没什么错误，但是 fis 有一个逻辑是 `addSameNameRequire`(通过设置 `useSameNameRequire`)\u003cbr\u003e\n它会把同名的关联文件添加依赖，比如依赖 `index.js` 模块，也会同时依赖 `index.css`(如果存在的话)\u003cbr\u003e\n这个方式在实现的时候，会把文件名去掉后缀名，然后在添加需要同名依赖的类型，然后去找文件\u003cbr\u003e\n因为后缀名的关系，如果希望 `index.es6.js` 同名依赖 `index.css` 的话，就有问题了\u003cbr\u003e\n因此通过此插件 fix 这个问题，例子如下：\n```\nfis.hook('commonjs', {\n    fixAddSameNameRequire: ['.es6.js']\n});\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimweb%2Ffis3-hook-fix","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fimweb%2Ffis3-hook-fix","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimweb%2Ffis3-hook-fix/lists"}