Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 30 days ago
JSON representation
10x your react-native builds with OXC
- Host: GitHub
- URL: https://github.com/oblador/react-native-oxc
- Owner: oblador
- License: mit
- Created: 2024-08-29T18:00:43.000Z (2 months ago)
- Default Branch: master
- Last Pushed: 2024-08-30T06:37:46.000Z (2 months ago)
- Last Synced: 2024-09-27T21:23:32.028Z (about 1 month ago)
- Topics: metro, oxc, oxc-resolver, react-native
- Language: TypeScript
- Homepage:
- Size: 1.4 MB
- Stars: 28
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
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