diff --git a/src/index.ts b/src/index.ts index 90f51e3..b144c84 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,4 +1,4 @@ -export * from "./route-blocker" +export { routeBlocker } from "./route-blocker" export interface RoutesBlockingMap { [route: string]: boolean; diff --git a/src/route-blocker.ts b/src/route-blocker.ts index e508b77..3c3644e 100644 --- a/src/route-blocker.ts +++ b/src/route-blocker.ts @@ -50,6 +50,4 @@ class RouteBlocker { } } -const routeBlocker = new RouteBlocker(); - -export default routeBlocker; +export const routeBlocker = new RouteBlocker();