Skip to content

Commit

Permalink
Merge pull request #238 from eddyw/fix/use-sync-external-store-import
Browse files Browse the repository at this point in the history
  • Loading branch information
marvinhagemeister authored Oct 14, 2022
2 parents 0c54727 + bcf4b0b commit b83792a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/strange-beans-attend.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@preact/signals-react": patch
---

Fix ERR_UNSUPPORTED_DIR_IMPORT error when importing `use-sync-external-store/shim` from ESM build
2 changes: 1 addition & 1 deletion packages/react/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
import React from "react";
import jsxRuntime from "react/jsx-runtime";
import jsxRuntimeDev from "react/jsx-dev-runtime";
import { useSyncExternalStore } from "use-sync-external-store/shim";
import { useSyncExternalStore } from "use-sync-external-store/shim/index.js";
import {
signal,
computed,
Expand Down

0 comments on commit b83792a

Please sign in to comment.