metro VS react-app-rewired

Compare metro vs react-app-rewired and see what are their differences.

metro

🚇 The JavaScript bundler for React Native (by facebook)

react-app-rewired

Override create-react-app webpack configs without ejecting (by timarney)
Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
metro react-app-rewired
16 10
5,054 9,718
0.9% -
9.4 0.0
11 days ago over 1 year ago
JavaScript JavaScript
MIT License MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

metro

Posts with mentions or reviews of metro. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-07-26.
  • Dynamic imports supported in react native
    3 projects | dev.to | 26 Jul 2023
    For details on the implementation you can see Evan's PR to metro here.
  • React Native bundler improvement! 🔥
    1 project | /r/reactnative | 9 Mar 2023
  • React vs React Native: How Different Are They, Really?
    12 projects | dev.to | 19 Dec 2022
    Some development tools for the web are similar (Chrome debugger, mostly) to those for React Native, but other aspects are very different (working with the metro bundler, using Flipper, AsyncStorage debugging, more). Some techniques developers will use are the same (breakpoints and console logging), but others are different (knowing when to restart the packager vs reinstall the app on device).
  • Setting up React Native Monorepo with Yarn Workspaces
    3 projects | dev.to | 14 Oct 2022
    We’re almost done with setting up the project. The last thing in the React Native app is to add watchFolders so metro knows where the linked node_modules are. The shared modules are symlinked by yarn, and since metro doesn’t follow symlinks we need to explicitly say it where the linked node_modules are.
  • Debugging RN + Expo bare using WebStorm? Would I be better off just killing myself now?
    2 projects | /r/reactnative | 15 Sep 2022
    Unfortunately it is what it is... I use intellij instead of webstorm since they're the same thing basically. I spent a shitton of time figuring out how to link a local package i was creating for my app only to discover about this issue that is almost as old as react native itself. (luckily there's rnx-kit that solves the problem). Not to talk about the impossibility to have one goddamn IDE to write both typescript, java and c++. Currently i have to write ts/js in intellij, then i have to switch to android studio to write java/c++.
  • Do you know where the __DEV__ flag is set?
    1 project | /r/reactnative | 15 Apr 2022
    React Native packager. Override instructions here.
  • React Native Monorepo
    2 projects | /r/reactnative | 22 Jan 2022
    React Native doesn't play nicely with most monorepo tools out of the box as Metro doesn't support symlinking.
  • Running React Native everywhere: The Web
    12 projects | dev.to | 26 Sep 2021
    Because React Native for Web is a React website, you can use front-end tools to build and run it. For example, you can build it with Webpack or Rollup instead of Metro bundler.
  • Running React Native everywhere: Android & iOS
    3 projects | dev.to | 21 Sep 2021
    Before we can run the app, we still need do one more thing: make metro bundler compatible with Yarn workspaces' hoisting.
  • Running React Native everywhere: Yarn Workspaces monorepo
    6 projects | dev.to | 16 Sep 2021
    Second, sharing code with other projects (e.g., backend code, web apps) may get complicated. Out-of-the-box, React Native's metro bundler cannot reference code outside of the project's root directory. You can configure it to do so (and we'll do it as well later on). Still, once you do it, you'll also need to ensure dependencies resolution works correctly (to avoid loading two different versions of the same library, for example); which might not be as easy as it may sound.

react-app-rewired

Posts with mentions or reviews of react-app-rewired. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-05-04.
  • html-loader not working
    1 project | /r/react | 7 May 2023
    Further information here: https://github.com/timarney/react-app-rewired
  • Build a web editor with react-monaco-editor
    5 projects | dev.to | 4 May 2023
    Ejecting a React app is a bad idea because our application will lose all the React configurations and will not benefit from the CRA updates. Some solutions for ejecting our application include using packages like react-app-rewired or rewire. You can also use CRACO to eject your React application, but it needs you to install additional plugins.
  • Chrome Extension with React
    1 project | dev.to | 28 Dec 2022
    When created I remove react-script package and copies build dependencies, configuration files and scripts into the app directory. It is needed to modify webpack.config file. (Another solution is to use react-app-rewired
  • Accepting Crypto Payments in a Classic Commerce App
    8 projects | dev.to | 5 Jul 2022
    Heads up: CRA5 bumped their webpack dependency to a version that no longer supports node polyfills in browsers. This breaks the builds of nearly all Ethereum-related projects today. A common workaround that avoids ejecting is to hook into the CRA build process. We’re using react-app-rewired but you could simply stay at CRA4 until the community comes up with a better solution.
  • Using Webpack with ReactJS
    3 projects | /r/reactjs | 28 Jun 2022
    CRA is good to get something running quick (and it uses webpack underneat!). In the past I've tweaked the webpack config using things like https://github.com/timarney/react-app-rewired when needed, but for all my "serious" projects I ended up ejecting and learning webpack! For my next project I'll try to skip CRA altogether!
  • Simplest Way to Install Babel Plugins in Create React App
    3 projects | dev.to | 27 Dec 2021
    // Overrides create-react-app webpack configs without ejecting // https://github.com/timarney/react-app-rewired const { addBabelPlugins, override } = require("customize-cra"); module.exports = override( ...addBabelPlugins( "babel-plugin-myPlugin" /* Add plug-in names here (separate each value by a comma) */ ) );
  • Running React Native everywhere: The Web
    12 projects | dev.to | 26 Sep 2021
    If Create React App supported Yarn workspaces out-of-the-box, what we've done so far would have been enough to run the app... unfortunately, it doesn't. Luckily, we can use CRACO (or other tools such as customize-cra or react-app-rewired) to customize the Webpack configuration used by Create React App to resolve packages imported from other workspaces.
  • Integrating YoastSEO.js word analyzer web worker in Reactjs
    1 project | /r/learnjavascript | 30 Jul 2021
    <--- JS stacktrace ---> FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory 1: 00007FF69616B9CF v8::internal::CodeObjectRegistry::~CodeObjectRegistry+112159 2: 00007FF6960FCA26 v8::internal::MicrotaskQueue::GetMicrotasksScopeDepth+65430 3: 00007FF6960FD90D node::OnFatalError+301 4: 00007FF696A91BAE v8::Isolate::ReportExternalAllocationLimitReached+94 5: 00007FF696A783AD v8::SharedArrayBuffer::Externalize+78 [1]: https://github.com/timarney/react-app-rewired
  • Enhancing Chrome Extension developer experience with CRA (create-react-app)
    3 projects | dev.to | 24 Jun 2021
    Enter react-app-rewired. What this package does is it allows you to hook into the Webpack config process so you can change settings, add loaders or plugins, and so on. It's like having all the pros of ejecting (mainly, access to the webpack.config.js) without actually ejecting.
  • Fullstack GraphQL starter kit Mid-2021 update
    4 projects | dev.to | 3 Jun 2021
    Switch to craco from react-app-rewired for better CRA v4 support (breaking change!)

What are some alternatives?

When comparing metro and react-app-rewired you can also consider the following projects:

expo-cli - Tools for creating, running, and deploying universal Expo and React Native apps

craco - Create React App Configuration Override, an easy and comprehensible configuration layer for Create React App.

webpack - A bundler for javascript and friends. Packs many modules into a few bundled assets. Code Splitting allows for loading parts of the application on demand. Through "loaders", modules can be CommonJs, AMD, ES6 modules, CSS, Images, JSON, Coffeescript, LESS, ... and your custom stuff.

react-native-web - Cross-platform React UI packages

Next.js - The React Framework

react-native-monorepo-tools - Tools and utils to support a React Native monorepo built with Yarn Workspaces

create-react-app - Set up a modern web app by running one command.

vite - Next generation frontend tooling. It's fast!

nx - Smart Monorepos · Fast CI

next.js - The React Framework [Moved to: https://github.com/vercel/next.js]