Skip to content

Commit

Permalink
Changes ESM entry file to export methods individually.
Browse files Browse the repository at this point in the history
This prevents a warning from being displayed when importing from this package.
  • Loading branch information
traviswimer committed Aug 21, 2022
1 parent 73c1f09 commit e27cf82
Showing 1 changed file with 19 additions and 2 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,
};

0 comments on commit e27cf82

Please sign in to comment.