{"id":29452543,"url":"https://github.com/dannyhw/vite-plugin-rnw","last_synced_at":"2026-01-20T17:32:37.027Z","repository":{"id":304382836,"uuid":"1018636270","full_name":"dannyhw/vite-plugin-rnw","owner":"dannyhw","description":"Vite plugin for React Native Web","archived":false,"fork":false,"pushed_at":"2025-07-12T18:46:45.000Z","size":219,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-12T19:35:01.784Z","etag":null,"topics":["plugin","react","react-native","react-native-web","vite","web"],"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/dannyhw.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":"2025-07-12T17:35:14.000Z","updated_at":"2025-07-12T18:56:11.000Z","dependencies_parsed_at":"2025-07-12T19:45:11.096Z","dependency_job_id":null,"html_url":"https://github.com/dannyhw/vite-plugin-rnw","commit_stats":null,"previous_names":["dannyhw/vite-plugin-rnw"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/dannyhw/vite-plugin-rnw","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dannyhw%2Fvite-plugin-rnw","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dannyhw%2Fvite-plugin-rnw/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dannyhw%2Fvite-plugin-rnw/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dannyhw%2Fvite-plugin-rnw/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dannyhw","download_url":"https://codeload.github.com/dannyhw/vite-plugin-rnw/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dannyhw%2Fvite-plugin-rnw/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265182280,"owners_count":23723943,"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":["plugin","react","react-native","react-native-web","vite","web"],"created_at":"2025-07-13T22:09:01.074Z","updated_at":"2026-01-20T17:32:37.011Z","avatar_url":"https://github.com/dannyhw.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vite-plugin-rnw\n\nA vite plugin for React Native Web projects.\n\nThis plugin uses the [react plugin](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) internally and applies a lot of fixes for react native web on top.\n\n```js\n// vite.config.js\nimport { defineConfig } from \"vite\";\nimport { rnw } from \"vite-plugin-rnw\";\n\nexport default defineConfig({\n  plugins: [rnw()],\n});\n```\n\n## Options\n\n### include/exclude\n\nIncludes `.js`, `.jsx`, `.ts` \u0026 `.tsx` by default. This option can be used to add fast refresh to other files:\n\n```js\nimport { defineConfig } from \"vite\";\nimport { rnw } from \"vite-plugin-rnw\";\n\nexport default defineConfig({\n  plugins: [rnw({ include: /\\.(js|jsx|ts|tsx)$/ })],\n});\n```\n\n`node_modules` can be processed by this plugin when needed\n\nBy default the excludes pattern is:\n\n```js\n/\\/node_modules\\/(?!react-native|@react-native|expo|@expo)/;\n```\n\nThis means any package that starts with react-native, @react-native, expo, or @expo will be included and other node_modules will be excluded. But you can change this to include or exclude any package you want.\n\n### jsxImportSource\n\nControl where the JSX factory is imported from. Default to `'react'`\n\n```js\nrnw({ jsxImportSource: \"nativewind\" });\n```\n\n### babel\n\nThe `babel` option lets you add plugins, presets, and [other configuration](https://babeljs.io/docs/en/options) to the Babel transformation performed on each included file.\n\n```js\nrnw({\n  babel: {\n    presets: [...],\n    // Your plugins run before any built-in transform (eg: Fast Refresh)\n    plugins: [...],\n    // Use .babelrc files\n    babelrc: true,\n    // Use babel.config.js files\n    configFile: true,\n  }\n})\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdannyhw%2Fvite-plugin-rnw","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdannyhw%2Fvite-plugin-rnw","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdannyhw%2Fvite-plugin-rnw/lists"}