Skip to content

Commit 0575f08

Browse files
authored
Update migrate-from-bucklescript-reason.mdx
1 parent bef47a7 commit 0575f08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pages/docs/manual/latest/migrate-from-bucklescript-reason.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ There are lots of exciting improvements in the new syntax (features, speed, erro
1919
- Choose a file to convert, for example `MyFile.re`
2020
- Compile your project and keep the generated JavaScript file around (probably `MyFile.bs.js` but might depend on your `bsconfig.json` config).
2121
- Run `node_modules/.bin/bsc -format MyFile.re > MyFile.res`.
22-
- If your new `MyFile.res` looks good, you can delete (or move/rename) `MyFile.re` before compiling again your project (otherwise you will have an error `Invalid bsconfig.json implementation and interface have different path names or different cases MyFile vs MyFile` because 2 files with the same module (file basename) name cannot coexist in your project).
22+
- If your new `MyFile.res` looks good, you can delete (or move/rename) `MyFile.re` before compiling again your project (otherwise you will have an error `Invalid bsconfig.json implementation and interface have different path names or different cases MyFile vs MyFile` because 2 files with the same module name (file basename) cannot coexist in your project).
2323
- Last thing you can do to ensure conversion is correct: build your project with the new `MyFile.res` file to compare the newly generated JavaScript file with the old one. You should get almost identical generated JavaScript code.
2424

2525
**That's it**! `MyFile.re` could be any `.re`, `.rei`, `.ml` and `.mli` file.

0 commit comments

Comments
 (0)