Skip to content

Commit 1b1fe73

Browse files
committed
Add configuration section
1 parent 7467629 commit 1b1fe73

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

pages/docs/manual/v12.0.0/migrate-to-v12.mdx

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,22 @@ Also remove auto opening of `RescriptCore`.
4646
Some typical name changes include:
4747

4848
`Error.t` -> `JsError.t`
49-
`raise(` -> `throw(`
49+
`raise(` -> `throw(`
5050
`Js.Exn.Error` exception -> `JsExn`
5151
`Error.make` -> `JsExn.make`
5252
`Error.raise` -> `JsExn.raise`
53-
`Error.message` -> `JsExn.message`
54-
`Int.Bitwise.lsl` -> `Int.shiftLeft`
53+
`Error.message` -> `JsExn.message`
54+
`Int.Bitwise.lsl` -> `Int.shiftLeft`
5555

56+
## Configuration
5657

58+
Rename `bsconfig.json` to `rescript.json` and update these configuration options:
5759

60+
- `bs-dependencies``dependencies`
61+
- `bs-dev-dependencies``dev-dependencies`
62+
- `bsc-flags``compiler-flags`
63+
64+
### jsx
65+
66+
- Set `version` to `4` (lower versions are not supported)
67+
- Remove `mode` option (automatically set to `automatic`)

0 commit comments

Comments
 (0)