Skip to content

Commit

Permalink
fix: version conflicts when installing react-native-webpack-toolkit (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
zamotany authored Mar 31, 2021
1 parent a4629e2 commit b803c2f
Show file tree
Hide file tree
Showing 8 changed files with 2,044 additions and 5,393 deletions.
12 changes: 9 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,12 +93,18 @@ Both Metro and `react-native-webpack-toolkit` have different approaches for the

## Installation & setup

1. Install `react-native-webpack-toolkit` dependency:
### Compatibility table

| `webpack` | `react-native-webpack-toolkit` |
| --------- | ------------------------------ |
| `5.22.0` | `1.0.0` |

1. Install necessary dependencies:

```bash
npm i -D react-native-webpack-toolkit
npm i -D [email protected] terser-webpack-plugin react-native-webpack-toolkit
# or
yarn add -D react-native-webpack-toolkit
yarn add -D [email protected] terser-webpack-plugin react-native-webpack-toolkit
```

2. Create `webpack.config.js` based on the [template](./templates/webpack.config.js).
Expand Down
Loading

0 comments on commit b803c2f

Please sign in to comment.