Skip to content

Commit c0b6301

Browse files
authored
fix(deps): require use-sync-external-store ^1.5.0 so the ESM build loads in Node (#846)
dist/index.js imports `use-sync-external-store/shim`, which is kept external. Before 1.5.0 the package had no `exports` map, so Node's ESM resolver treats `/shim` as a directory and throws ERR_UNSUPPORTED_DIR_IMPORT. That breaks anything that loads the ESM build without a bundler: Vitest tests in apps that use reactfire, SSR that keeps dependencies external, and plain Node scripts. The CJS build is fine. Raise the floor to ^1.5.0 (lockfile: 1.2.0 -> 1.7.0).
1 parent 404a578 commit c0b6301

2 files changed

Lines changed: 7 additions & 6 deletions

File tree

‎package-lock.json‎

Lines changed: 6 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@
122122
"dependencies": {
123123
"rxfire": "^6.3.0",
124124
"rxjs": "^6.6.3 || ^7.0.1",
125-
"use-sync-external-store": "^1.2.0"
125+
"use-sync-external-store": "^1.5.0"
126126
},
127127
"allowScripts": {
128128
"@firebase/util@1.12.1": true,

0 commit comments

Comments
 (0)