Skip to content

boostbrothers/react-native-esbuild

 
 

Repository files navigation

react-native-esbuild

logo

⚡️ An extremely fast bundler + React Native

esbuild swc react native

npm code style typescript

Features

banner

Warning

This project is under development

  • ⚡️ Blazing Fast Build
  • 🌳 Supports Tree Shaking
  • 💾 In-memory & Local File System Caching
  • 🎨 Flexible & Extensible
  • 🔥 Supports JSC & Hermes Runtime
  • 🔄 Supports Live Reload
  • 🐛 Supports Debugging(Flipper, Chrome Debugger)
  • 🌍 Supports All Platforms(Android, iOS, Web)
  • ✨ New Architecture Ready
  • 🃏 Jest transformer included

👉 See a demo application built with a web target here.

Getting Started

Go to documentation

Development

# install dependencies and run build
yarn && lerna run build

# in example directory,
# run example application (start @react-native-esbuild/dev-server)
yarn start

# build example project (example/dist/<bundle and assets>)
yarn build:android
yarn build:ios
# run yarn commands
yarn workspace <workspaceName> <command>

# build all packages or specified package only
lerna run build
lerna run build --scope @react-native-esbuild/xxx

# run all test or specified package only
yarn test
yarn test --selectProjects <workspaceName>

# show project dependencies graph
nx graph

Benchmark

# in `example` directory

# react-native-esbuild (with cache)
time yarn bundle:android
time yarn bundle:ios
# react-native-esbuild (without cache)
time yarn bundle:android --reset-cache
time yarn bundle:ios --reset-cache

# metro (with cache)
time yarn bundle:metro:android
time yarn bundle:metro:ios
# metro (without cache)
time yarn bundle:metro:android --reset-cache
time yarn bundle:metro:ios --reset-cache

License

MIT

About

⚡️ esbuild based universal bundler for React Native

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 88.0%
  • Java 3.9%
  • JavaScript 3.5%
  • HTML 1.9%
  • Ruby 1.0%
  • Objective-C 0.9%
  • Other 0.8%