Skip to content

Commit f10bb69

Browse files
committed
docs: add migration
1 parent 9d4f61c commit f10bb69

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

docs/migration.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Migration
2+
3+
# Migration from react-app-rewired-alias
4+
5+
Dangerous mode is renamed to extended/extremal. The implementation
6+
for dangerous mode is moved to separaded liblrary with suffix **`-ex`**.
7+
8+
* Replace library name for generic mode
9+
10+
```diff
11+
- const {alias} = require('react-app-rewire-alias')
12+
+ const {alias} = require('react-app-alias')
13+
```
14+
15+
* Replace library name for dangerous mode,
16+
* Remove `/lib/aliasDangerous` path part from import,
17+
* Notice that library name is different (suffix `-ex` added),
18+
* Fangerous mode function `aliasDangerous` for `react-app-rewired` or `customize-cra` is renamed to `alias`.
19+
20+
```diff
21+
- const {aliasDangerous} = require('react-app-rewired-alias/lib/aliasDangerous')
22+
+ const {alias} = require('react-app-alias-ex')
23+
```
24+

0 commit comments

Comments
 (0)