Skip to content

Commit 1a5dd30

Browse files
authored
docs: migration configPaths functions to tsconfig option
1 parent f5e59b9 commit 1a5dd30

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

docs/migration.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,3 +62,21 @@ const aliasMap = {
6262
+ module.exports = aliasWebpack({alias: aliasMap})
6363
+ module.exports.jest = aliasJest({alias: aliasMap})
6464
```
65+
66+
Fucntion `configPaths()` now become needed in rare cases. It is used internally.
67+
Now you can specify path of *tsconfig.json* or *jsconfig.json* as an option.
68+
69+
```diff
70+
- const aliasMap = configPaths("./tsconfig.paths.json")
71+
- module.exports = aliasWebpack({alias: aliasMap})
72+
+ module.exports = aliasWebpack({tsconfig: "./tsconfig.paths.json"})
73+
```
74+
75+
If you uses standart name of these files you can skip it. It will be opned automatically.
76+
77+
```diff
78+
- const aliasMap = configPaths("./jsconfig.paths.json")
79+
- module.exports = aliasWebpack({jsconfig: "./jsconfig.paths.json"})
80+
+ module.exports = aliasWebpack({})
81+
```
82+

0 commit comments

Comments
 (0)