Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/oblador/react-native-oxc

10x your react-native builds with OXC
https://github.com/oblador/react-native-oxc

metro oxc oxc-resolver react-native

Last synced: about 2 hours ago
JSON representation

10x your react-native builds with OXC

Awesome Lists containing this project

README

        

# react-native-oxc

The [Oxidation Compiler](https://oxc.rs) is creating a collection of high-performance tools for JavaScript and TypeScript written in Rust.

This library lets you leverage it for resolution (and soon ™ transpilation) to boost your react-native development environment.

## Benefits over plain metro

* 10x faster rebuilds for larger projects
* Built-in support for tsconfig paths, so no need for `babel-plugin-module-resolver`
* Handles `exports` conditions

## Installation

```sh
npm install react-native-oxc
```

## Usage

Modify the metro config to look something like this:

```js
// metro.config.js
const { createOxcResolver } = require('react-native—oxc');

const config = {
resolver: {
resolveRequest: createOxcResolver({
// optional oxc resolver options
}),
},
};
```

## Contributing

See the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.

## License

MIT