Skip to content

Commit

Permalink
Merge pull request #1 from traviswimer/entry_export_fix
Browse files Browse the repository at this point in the history
Changes ESM entry file to export methods individually.
  • Loading branch information
traviswimer authored Aug 21, 2022
2 parents 73c1f09 + 017360f commit 3860366
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
21 changes: 19 additions & 2 deletions entry/index.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,19 @@
import * as ReactHydrationProvider from "../dist/index.js";
export default ReactHydrationProvider;
import {
HydrationContext,
HydrationProvider,
useHydrated,
Server,
Client,
createHydration,
useComponentHydrated,
} from "../dist/index.js";

export {
HydrationContext,
HydrationProvider,
useHydrated,
Server,
Client,
createHydration,
useComponentHydrated,
};
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-hydration-provider",
"version": "1.0.0",
"version": "1.0.1",
"license": "MIT",
"type": "module",
"description": "React tools for controlling what your app renders before and after app hydration.",
Expand Down

0 comments on commit 3860366

Please sign in to comment.