{"id":15993075,"url":"https://github.com/bash-archive/babel-plugin-transform-preact-import","last_synced_at":"2025-10-21T03:30:33.850Z","repository":{"id":84753815,"uuid":"93436024","full_name":"bash-archive/babel-plugin-transform-preact-import","owner":"bash-archive","description":"Imports preact for files containing jsx","archived":true,"fork":false,"pushed_at":"2022-07-27T09:31:23.000Z","size":88,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-04T23:06:08.566Z","etag":null,"topics":["babel","preact"],"latest_commit_sha":null,"homepage":"","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/bash-archive.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":"2017-06-05T18:47:43.000Z","updated_at":"2024-01-01T14:45:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"313b4b8c-1072-424a-8f93-b33a0ca16ff4","html_url":"https://github.com/bash-archive/babel-plugin-transform-preact-import","commit_stats":null,"previous_names":["bash-archive/babel-plugin-transform-preact-import"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bash-archive%2Fbabel-plugin-transform-preact-import","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bash-archive%2Fbabel-plugin-transform-preact-import/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bash-archive%2Fbabel-plugin-transform-preact-import/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bash-archive%2Fbabel-plugin-transform-preact-import/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bash-archive","download_url":"https://codeload.github.com/bash-archive/babel-plugin-transform-preact-import/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237429305,"owners_count":19308765,"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","preact"],"created_at":"2024-10-08T06:42:49.762Z","updated_at":"2025-10-21T03:30:33.527Z","avatar_url":"https://github.com/bash-archive.png","language":"JavaScript","readme":"# babel-plugin-transform-preact-import  \n*BPTPI for short, pronounced Bipitipy*  \n\n[![Build and Test](https://github.com/bash/babel-plugin-transform-preact-import/actions/workflows/build.yml/badge.svg)](https://github.com/bash/babel-plugin-transform-preact-import/actions/workflows/build.yml)\n\n\u003e This plugin adds `import { h } from 'preact'` to files containing JSX\n\n## Example\n\n**In**\n\n```js\nconst Title = (value) =\u003e \u003ch1\u003e{value}\u003c/h1\u003e\n```\n\n**Out**\n\n```js\nimport { h } from 'preact'\nconst Title = (value) =\u003e \u003ch1\u003e{value}\u003c/h1\u003e\n```\n\n## Installation\n\n```\nnpm install --save-dev babel-plugin-transform-preact-import\n```\n\n## Usage\n\n### Via `.babelrc` (Recommended)\n\n```json\n{\n  \"plugins\": [\n    \"transform-preact-import\"\n  ]\n}\n```\n\n### Via CLI\n\n```\nbabel --plugins babel-plugin-transform-preact-import script.js\n```\n\n### Via Node API\n\n```js\nrequire(\"babel-core\").transform(\"code\", {\n  plugins: [\"transform-preact-import\"]\n});\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbash-archive%2Fbabel-plugin-transform-preact-import","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbash-archive%2Fbabel-plugin-transform-preact-import","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbash-archive%2Fbabel-plugin-transform-preact-import/lists"}