{"id":23763959,"url":"https://github.com/tomashubelbauer/babel-sourcemap","last_synced_at":"2025-07-22T14:32:45.989Z","repository":{"id":107985995,"uuid":"228342423","full_name":"TomasHubelbauer/babel-sourcemap","owner":"TomasHubelbauer","description":"Reproducing a Babel bug where string literals get mapped incorrectly when used as React children","archived":false,"fork":false,"pushed_at":"2022-12-31T00:51:09.000Z","size":76,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-01T16:42:44.951Z","etag":null,"topics":["babel","babel-sourcemap","sourcemap"],"latest_commit_sha":null,"homepage":"","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/TomasHubelbauer.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,"zenodo":null}},"created_at":"2019-12-16T08:48:51.000Z","updated_at":"2023-03-07T13:37:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"f43828d7-7050-40d5-bd54-908498e4e4a8","html_url":"https://github.com/TomasHubelbauer/babel-sourcemap","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/TomasHubelbauer/babel-sourcemap","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TomasHubelbauer%2Fbabel-sourcemap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TomasHubelbauer%2Fbabel-sourcemap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TomasHubelbauer%2Fbabel-sourcemap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TomasHubelbauer%2Fbabel-sourcemap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TomasHubelbauer","download_url":"https://codeload.github.com/TomasHubelbauer/babel-sourcemap/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TomasHubelbauer%2Fbabel-sourcemap/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266510356,"owners_count":23940643,"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-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"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":["babel","babel-sourcemap","sourcemap"],"created_at":"2024-12-31T22:13:57.460Z","updated_at":"2025-07-22T14:32:45.978Z","avatar_url":"https://github.com/TomasHubelbauer.png","language":"JavaScript","readme":"# Babel Sourcemap Demo\n\nThis repository used to demonstrate a Babel string literal source mapping issue:\nhttps://github.com/babel/babel/issues/10869.\n\nThe issue has been blocking https://github.com/TomasHubelbauer/cra-ast-localize\nand has since been fixed so the repository has shifted to demonstrate a minimal\nTypeScript transformer which visits all string literals and replaces their text\nwhich is the purpose of the linked repository that was blocked by the issue.\n\n## Running\n\nFirst time setup:\n\n```sh\ncd demo\nnpm install\ncd ..\nnpm install\n```\n\nRunning the demo: `npm start`.\n\nThis will run Babel to transform the source code in `src` into the source code\nin `lib` and then will run the demo script in `demo` which runs the TypeScript\ntranformer.\n\nThe transformer changes the string literals in the files in `lib` so after the\n`npm start` command has run, you can inspect them and see the additional `TEST`\nmarkers surrounding the original strings that were added by the transformer.\n\n## Updating dependencies\n\n```\nnpm install @babel/cli @babel/core @babel/preset-env @babel/preset-react\ncd demo\nnpm install source-map typescript\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomashubelbauer%2Fbabel-sourcemap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftomashubelbauer%2Fbabel-sourcemap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomashubelbauer%2Fbabel-sourcemap/lists"}