Skip to content

Commit 00cb4d0

Browse files
authored
Rewatch: fix panic if package.json name different from module name (#7616)
* Rewatch: fix panic if package.json name different from module name * CHANGELOG
1 parent 65c599f commit 00cb4d0

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,10 @@
4747
- Pass location to children prop in jsx ppx. https://github.com/rescript-lang/rescript/pull/7540
4848
- Fix crash when `bs-g` is used with untagged variants. https://github.com/rescript-lang/rescript/pull/7575
4949
- Fix issue with preserve mode where `jsx` is declared as an external without a `@module` attribute. https://github.com/rescript-lang/rescript/pull/7591
50+
- Rewatch: don't add deps to modules that are in packages that are not a dependency. https://github.com/rescript-lang/rescript/pull/7612
51+
- Rewatch: fix non-unicode stderr. https://github.com/rescript-lang/rescript/pull/7613
5052
- Fix rewatch considering warning configs of non-local dependencies. https://github.com/rescript-lang/rescript/pull/7614
53+
- Rewatch: fix panic if package.json name different from module name. https://github.com/rescript-lang/rescript/pull/7616
5154

5255
#### :nail_care: Polish
5356

rewatch/src/build/packages.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ fn read_packages(
470470
dependencies.iter().for_each(|d| {
471471
if !map.contains_key(&d.name) {
472472
let package = make_package(d.config.to_owned(), &d.path, d.is_pinned, false);
473-
map.insert(package.name.to_string(), package);
473+
map.insert(d.name.to_string(), package);
474474
}
475475
});
476476

0 commit comments

Comments
 (0)