{"id":19196979,"url":"https://github.com/jitesoft/babel-preset-react","last_synced_at":"2026-05-05T06:41:04.716Z","repository":{"id":38419578,"uuid":"230925548","full_name":"jitesoft/babel-preset-react","owner":"jitesoft","description":null,"archived":false,"fork":false,"pushed_at":"2024-03-24T15:10:40.000Z","size":836,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-04T10:08:32.051Z","etag":null,"topics":["babel","hacktoberfest","jsx","react"],"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/jitesoft.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}},"created_at":"2019-12-30T14:00:37.000Z","updated_at":"2021-12-31T11:19:40.000Z","dependencies_parsed_at":"2023-12-26T15:30:54.949Z","dependency_job_id":null,"html_url":"https://github.com/jitesoft/babel-preset-react","commit_stats":null,"previous_names":[],"tags_count":66,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jitesoft%2Fbabel-preset-react","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jitesoft%2Fbabel-preset-react/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jitesoft%2Fbabel-preset-react/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jitesoft%2Fbabel-preset-react/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jitesoft","download_url":"https://codeload.github.com/jitesoft/babel-preset-react/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240271531,"owners_count":19774859,"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","hacktoberfest","jsx","react"],"created_at":"2024-11-09T12:15:02.964Z","updated_at":"2026-05-05T06:41:04.676Z","avatar_url":"https://github.com/jitesoft.png","language":"JavaScript","funding_links":["https://opencollective.com/jitesoft-open-source"],"categories":[],"sub_categories":[],"readme":"# @jitesoft/babel-preset-react\n\n[![npm (scoped)](https://img.shields.io/npm/v/@jitesoft/babel-preset-react)](https://www.npmjs.com/package/@jitesoft/babel-preset-react)\n[![Known Vulnerabilities](https://dev.snyk.io/test/npm/@jitesoft/babel-preset-react/badge.svg)](https://dev.snyk.io/test/npm/@jitesoft/babel-preset-react)\n[![pipeline status](https://gitlab.com/jitesoft/open-source/javascript/babel-preset-react/badges/master/pipeline.svg)](https://gitlab.com/jitesoft/open-source/javascript/babel-preset-react/commits/master)\n[![npm](https://img.shields.io/npm/dt/@jitesoft/babel-preset-react)](https://www.npmjs.com/package/@jitesoft/babel-preset-react)\n[![Back project](https://img.shields.io/badge/Open%20Collective-Tip%20the%20devs!-blue.svg)](https://opencollective.com/jitesoft-open-source)\n\nReact preset for Jitesoft javascript projects which uses babel.\n\nIncludes the following presets and plugins:\n\n```\n@jitesoft/preset-main\n@babel/plugin-transform-react-display-name\n@babel/plugin-transform-react-jsx\n@babel/plugin-syntax-jsx\n\n@babel/plugin-transform-react-inline-elements *\n@babel/plugin-transform-react-constant-elements *\n@babel/plugin-transform-react-jsx-compat *\n```\n\n_* Packages will only be used if they are added to the `include` array of the options object._\n\nIf babel is in development mode, the following plugins will be enabled:\n\n```\n@babel/plugin-transform-react-jsx-source\n@babel/plugin-transform-react-jsx-self\n```\n\nRequires `corejs (v 3+)` and `@babel/core`.\n\n## Options\n\nOther than the default presets in [`@jitesoft/babel-preset-main`](https://gitlab.com/jitesoft/open-source/javascript/babel-preset-main), the following options\nare available:\n\n* `useBuiltIns` (boolean) - Use built ins instead of polyfill. Uses same value as passed for the main preset (defaults to `false`).\n* `include` (array) - Addition for the three plugins marked with `*` in the above list (defaults to empty array).\n\nThe following options are prefixed with 'react' and corresponds to the options of the `transform-react-jsx` plugin.  \n(Prefixed with `react.` since v2.0.0).\n\n* `react.useSpread` (boolean) - Uses js props spread instead of babel helper. Defaults to `false`.\n* `react.throwIfNamespace` (boolean) - Makes babel throw an error if using xml namespaces. Defaults to `true`.\n* `react.runtime` (string) - `classic` or `automatic`, defaults to `classic`.\n\nif runtime is set to `classic` (default) the following options are available:\n\n* `react.pragma` (string) - Defines which create element method to use. Defaults to `React.createElement`.\n* `react.pragmaFrag` (string) - Defines which Fragment component to use. Defaults to `React.Fragment`.\n\nif runtime is set to `automatic` the following options are available:\n\n* `react.importSource` (string) - defaults to `react`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjitesoft%2Fbabel-preset-react","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjitesoft%2Fbabel-preset-react","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjitesoft%2Fbabel-preset-react/lists"}