{"id":13739469,"url":"https://github.com/loganfsmyth/babel-plugin-transform-builtin-extend","last_synced_at":"2025-04-23T14:19:24.728Z","repository":{"id":60774997,"uuid":"47813361","full_name":"loganfsmyth/babel-plugin-transform-builtin-extend","owner":"loganfsmyth","description":"A plugin for Babel 6 supports extending from builtin types based on static analysis.","archived":false,"fork":false,"pushed_at":"2022-01-18T09:08:04.000Z","size":6,"stargazers_count":147,"open_issues_count":13,"forks_count":19,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-23T14:19:15.120Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/loganfsmyth.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}},"created_at":"2015-12-11T08:04:10.000Z","updated_at":"2025-01-02T01:02:54.000Z","dependencies_parsed_at":"2022-10-04T16:16:29.406Z","dependency_job_id":null,"html_url":"https://github.com/loganfsmyth/babel-plugin-transform-builtin-extend","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loganfsmyth%2Fbabel-plugin-transform-builtin-extend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loganfsmyth%2Fbabel-plugin-transform-builtin-extend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loganfsmyth%2Fbabel-plugin-transform-builtin-extend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loganfsmyth%2Fbabel-plugin-transform-builtin-extend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/loganfsmyth","download_url":"https://codeload.github.com/loganfsmyth/babel-plugin-transform-builtin-extend/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250447981,"owners_count":21432166,"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-08-03T04:00:34.273Z","updated_at":"2025-04-23T14:19:24.709Z","avatar_url":"https://github.com/loganfsmyth.png","language":"JavaScript","funding_links":[],"categories":["Plugins"],"sub_categories":["General Plugins"],"readme":"\n# Babel Builtin Constructor extension plugin\n\nThis is a Babel 6 plugin to enable extending builtin types like \"Error\" and \"Array\" and such,\nwhich require special treatment and require static analysis to detect.\n\n\n## Usage\n\nIn your Babel 6 configuration, for example in a `.babelrc` you might have\n\n\n```\n{\n    \"plugins\": [\n        [\"babel-plugin-transform-builtin-extend\", {\n            globals: [\"Error\", \"Array\"]\n        }]\n    ]\n}\n```\n\nwhich would enable the plugin and configure it to look for any class extending `Error` or `Array` globals.\n\n## IE\u003c=10\n\nOn older browsers that do not support reassigning the prototype of an existing object, you will need to\nenable the `approximate` mode, which will fall back to the Babel 5 behavior of using simple ES5 inheritance\nto approximate extending a class, though your results may vary depending on your goals.\n\n\n```\n{\n    \"plugins\": [\n        [\"babel-plugin-transform-builtin-extend\", {\n            globals: [\"Error\", \"Array\"],\n            approximate: true\n        }]\n    ]\n}\n```\n\n## Limitations\n\nThis plugin will only reles on assigning `__proto__` for static property inheritance from parent constructors.\nIf you are relying on this, it will not work on IE\u003c=10 and any other browsers that don't support `__proto__`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Floganfsmyth%2Fbabel-plugin-transform-builtin-extend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Floganfsmyth%2Fbabel-plugin-transform-builtin-extend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Floganfsmyth%2Fbabel-plugin-transform-builtin-extend/lists"}