{"library":"babel-plugin-react-native-web","type":"library","category":null,"description":"The `babel-plugin-react-native-web` package is a Babel plugin designed to optimize applications using `react-native-web`. It works by aliasing `react-native` imports to `react-native-web` and performing tree-shaking to exclude unused modules, thereby reducing bundle size. The current stable version is 0.21.2. This plugin is part of the `react-native-web` ecosystem, which generally sees frequent updates, often tied to new React and React Native versions, indicating an active development and release cadence. Its primary differentiator is enabling existing React Native codebases to run efficiently on the web without significant code changes, by providing a targeted build-time optimization layer. It's crucial for projects aiming for a single codebase across native and web platforms.","language":"javascript","status":"active","version":"0.21.2","tags":["javascript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install babel-plugin-react-native-web","imports":["plugins: [\n    [\"react-native-web\", { commonjs: false }]\n  ]","import { StyleSheet, View } from 'react-native';"]},{"cmd":"yarn add babel-plugin-react-native-web","imports":[]},{"cmd":"pnpm add babel-plugin-react-native-web","imports":[]}],"homepage":"https://necolas.github.io/react-native-web","github":"https://github.com/necolas/react-native-web","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/babel-plugin-react-native-web","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/babel-plugin-react-native-web/compatibility"}}