{"repo":"oblador/react-native-swc","free":true,"listed":false,"github":"https://github.com/oblador/react-native-swc","clone":"git clone https://github.com/oblador/react-native-swc.git","description":"⚡️ SWC-powered transformer & minifier for Metro","language":"TypeScript","stars":130,"topics":["metro","react-native","swc","swc-plugin"],"license":"MIT","category":"mobile-apps","readme_excerpt":"react-native-swc SWC-powered transformer for Metro - 🔧 Drop-in replacement for Metro Babel transform worker and minifier - 🦀 All transformation in Rust, no Babel in sight - 🏎️ Fast: transform worker is 8× faster & full real world bundling 3× faster - ⚡️ Battery friendly: 15× less CPU utilization - 🚇 Feature parity with Metro: HMR, inline requires, Platform.select() substituion, constant folding, delta bundles etc - 🔤 Native support for Flow, TypeScript, ESM, CJS, JSX - 🧵 Worklet/Reanimated support without Babel through custom SWC plugin - 🔌 Support for SWC plugins and process.env inlining - ⚛️ Expo Plugin for seamless integration Install If your app uses react-native-reanimated : Setup Expo (managed / CNG) — config plugin Add @react-native-swc/core to app.json : The plugin writes (or updates) a metro.config.js wired up to withSwcTransformer . If react-native-worklets is listed in your dependencies, the worklets SWC plugin is registered automatically. Any EXPO PUBLIC env vars present at metro start are inlined into the bundle, matching Expo's default Babel pipeline. If you already have a manual withSwcTransformer call, the plugin leaves your config alone. Disable worklet auto-detection if needed: Note. Expo config plugins run only during expo prebuild (and eas build , which invokes prebuild). Running expo start alone does not re-run plugins. Bare React Native / Expo (manual) For Expo without the config plugin, swap @react-native/metro-config for expo/metro-config . To m","default_branch":null,"files":null,"tree":[],"storefront":"/r/oblador","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/oblador/react-native-swc/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}