/swc-plugin-react-native-web

A SWC plugin that will alias react-native to react-native-web

Primary LanguageRustMIT LicenseMIT

swc-plugin-react-native-web

A SWC plugin that will alias react-native to react-native-web.
Inspired from babel-plugin-react-native-web.

Installation

npm install --save-dev @nissy-dev/swc-plugin-react-native-web

Usage

{
  "jsc": {
    "experimental": {
      "plugins": [["@nissy-dev/swc-plugin-react-native-web", { "commonjs": false }]]
    }
  }
}