{"id":21701445,"url":"https://github.com/ktsn/babel-plugin-remove-vue-extend","last_synced_at":"2025-04-12T13:37:27.278Z","repository":{"id":66221581,"uuid":"124184231","full_name":"ktsn/babel-plugin-remove-vue-extend","owner":"ktsn","description":"Babel plugin for removing `Vue.extend` from components","archived":false,"fork":false,"pushed_at":"2018-03-07T05:33:59.000Z","size":51,"stargazers_count":7,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-02T09:25:04.375Z","etag":null,"topics":["babel","babel-plugin","vue"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/ktsn.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-03-07T05:31:55.000Z","updated_at":"2021-12-27T10:41:45.000Z","dependencies_parsed_at":"2023-07-29T07:33:00.939Z","dependency_job_id":null,"html_url":"https://github.com/ktsn/babel-plugin-remove-vue-extend","commit_stats":{"total_commits":9,"total_committers":1,"mean_commits":9.0,"dds":0.0,"last_synced_commit":"56a8d1843a774f5ce4fbfab5ca6dda943a5fb3a7"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ktsn%2Fbabel-plugin-remove-vue-extend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ktsn%2Fbabel-plugin-remove-vue-extend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ktsn%2Fbabel-plugin-remove-vue-extend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ktsn%2Fbabel-plugin-remove-vue-extend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ktsn","download_url":"https://codeload.github.com/ktsn/babel-plugin-remove-vue-extend/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248574133,"owners_count":21126955,"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":["babel","babel-plugin","vue"],"created_at":"2024-11-25T20:19:58.315Z","updated_at":"2025-04-12T13:37:27.273Z","avatar_url":"https://github.com/ktsn.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# babel-plugin-remove-vue-extend\n\nBabel plugin for removing `Vue.extend` from components.\n\n## Usage\n\nInstall:\n\n```sh\nnpm install babel-plugin-remove-vue-extend\n# or\nyarn add babel-plugin-remove-vue-extend\n```\n\n.babelrc:\n\n```json\n{\n  \"plugins\": [\"remove-vue-extend\"]\n}\n```\n\nThen if you have the following component:\n\n```js\nimport Vue from 'vue'\n\nexport default Vue.extend({\n  data() {\n    return { message: 'Hello!' }\n  }\n})\n```\n\nIt will be transformed into:\n\n```js\nexport default {\n  data() {\n    return { message: 'Hello!' }\n  }\n}\n```\n\nIf you are using some extended component and extend from it like:\n\n```js\nimport Sub from './Sub.vue'\n\nexport default Sub.extend({\n  data() {\n    return { message: 'Hello!' }\n  }\n})\n```\n\nIt will be removed the `extend` call expression but moved into `extends` option:\n\n```js\nimport Sub from './Sub.vue'\n\nexport default {\n  extends: Sub,\n\n  data() {\n    return { message: 'Hello!' }\n  }\n}\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fktsn%2Fbabel-plugin-remove-vue-extend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fktsn%2Fbabel-plugin-remove-vue-extend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fktsn%2Fbabel-plugin-remove-vue-extend/lists"}