Installation
Requirements: Node>=16
# using npm
npm install -D @react-native-esbuild/cli
# using yarn
yarn add -D @react-native-esbuild/cli
Configuration
Add .rne
and .swc
to .gitignore
.
# @react-native-esbuild's local cache directory for development environment
.rne
# swc plugins
.swc
And create react-native-esbuild.js
to project root.
/**
* @type {import('@react-native-esbuild/core').Config}
*/
exports.default = {};
for more details, go to Configuration.
Native Setup
If you want to integrate with build processes, go to Native Setup(Android, iOS) guide.