Skip to content
/ repack Public
forked from callstack/repack

A Webpack-based toolkit to build your React Native application with full support of Webpack ecosystem.

License

Notifications You must be signed in to change notification settings

kerm1it/repack

 
 

Repository files navigation

A Webpack-based toolkit to build your React Native application with full support of Webpack ecosystem.


Build Status Version MIT License Chat PRs Welcome Code of Conduct Sponsored by Callstack

Re.Pack is a next generation of Haul — a Webpack-based bundler for React Native applications.

Re.Pack uses Webpack 5 and React Native CLI's plugin system to allow you to bundle your application using Webpack and allow to easily switch from Metro.

Check the base webpack.config.cjs or webpack.config.mjs template, if you're curious how it all looks like.

Features

  • Webpack ecosystem, plugins and utilities
  • Build production bundle for iOS, Android and out-of-tree platforms
  • Build development bundle for iOS, Android and out-of-tree platforms
  • Development server with support for:
    • Remote JS debugging
    • Source Map symbolication
    • Hot Module Replacement and React Refresh
    • Reloading application from CLI using r key
  • Built-in Hot Module Replacement + React Refresh support
  • Flipper support:
    • Crash Reporter,
    • Application logs
    • Layout
    • Network
    • Hermes debugger
    • React DevTools
    • Development server (debugging/verbose) logs
  • Hermes support:
    • Running the production/development bundle using Hermes engine
    • Transforming production bundle into bytecode bundle
    • Inspecting running Hermes engine with Flipper
    • ChunksToHermesBytecodePlugin plugin to transform async chunks into Hermes bytecode
  • Code splitting (experimental):
    • Dynamic import() support with and without React.lazy() (recommended).
    • Arbitrary scripts (only for advanced users).
  • REST API for development server:
    • GET /api/platforms - platforms with active compilations.
    • GET /api/:platform/assets - assets emitted from compilation.
    • GET /api/:platform/stats - data about compilation.
  • Module Federation support
  • Code signing and verification
  • @callstack/repack-init - tool that automates the integration of the Re.Pack into React Native projects

Examples

Explore examples of React Native applications using Re.Pack here: https://github.com/callstack/repack-examples.

For a more comprehensive example of a Super App setup with Module Federation please visit our Super App Showcase repository.

Documentation

The documentation is available at: https://re-pack.dev

You can also use the following links to jump to specific topics:

Made with ❤️ at Callstack

@callstack/repack is an open source project and will always remain free to use. If you think it's cool, please star it 🌟. Callstack is a group of React and React Native geeks, contact us at [email protected] if you need any help with these or just want to say hi!

Like the project? ⚛️ Join the team who does amazing stuff for clients and drives React Native Open Source! 🔥

About

A Webpack-based toolkit to build your React Native application with full support of Webpack ecosystem.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 61.9%
  • JavaScript 22.0%
  • MDX 5.9%
  • Kotlin 3.8%
  • Objective-C++ 1.9%
  • CSS 1.2%
  • Other 3.3%