{"id":16292484,"url":"https://github.com/exogen/stylus-loader-import-wtf","last_synced_at":"2025-08-19T05:05:39.495Z","repository":{"id":66194754,"uuid":"59157547","full_name":"exogen/stylus-loader-import-wtf","owner":"exogen","description":null,"archived":false,"fork":false,"pushed_at":"2016-05-18T23:08:39.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-11T04:39:23.643Z","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/exogen.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":"exogen","buy_me_a_coffee":"mosswood"}},"created_at":"2016-05-18T23:04:12.000Z","updated_at":"2016-05-18T23:05:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"660257ae-9683-4e42-ac23-1505b5b81f17","html_url":"https://github.com/exogen/stylus-loader-import-wtf","commit_stats":{"total_commits":2,"total_committers":2,"mean_commits":1.0,"dds":0.5,"last_synced_commit":"7952d94ecad71338ab3318655b3b27cdfd5574f2"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/exogen/stylus-loader-import-wtf","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exogen%2Fstylus-loader-import-wtf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exogen%2Fstylus-loader-import-wtf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exogen%2Fstylus-loader-import-wtf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exogen%2Fstylus-loader-import-wtf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/exogen","download_url":"https://codeload.github.com/exogen/stylus-loader-import-wtf/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exogen%2Fstylus-loader-import-wtf/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271103202,"owners_count":24699646,"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","status":"online","status_checked_at":"2025-08-19T02:00:09.176Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-10T20:07:05.587Z","updated_at":"2025-08-19T05:05:39.456Z","avatar_url":"https://github.com/exogen.png","language":"JavaScript","funding_links":["https://github.com/sponsors/exogen","https://buymeacoffee.com/mosswood"],"categories":[],"sub_categories":[],"readme":"## Why are stylus-loader imports insane?\n\n1. Our entry point requires `styles/example-1`.\n2. `styles/example-1` requires `./a/base` and `./variables`.\n3. `./a/base` requires `./variables` – that is, `styles/a/variables`.\n4. `stylus-loader` seems to think both `./variables` imports should resolve to the same file.\n5. An error is thrown because we should be getting variables from both files, but we only get one.\n6. Prefixing all imports with a `~` still throws an error, but we get the opposite file.\n7. It works if one `./variables` is prefixed with `~` and one isn't...but why? And that isn't a general solution.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexogen%2Fstylus-loader-import-wtf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fexogen%2Fstylus-loader-import-wtf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexogen%2Fstylus-loader-import-wtf/lists"}