Skip to content

Commit 45d5f7d

Browse files
committed
Export RouterContext in rrd
1 parent b4963db commit 45d5f7d

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
// Written in this round about way for babel-transform-imports
2+
import { RouterContext } from "react-router";
3+
export default RouterContext;

packages/react-router-dom/modules/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ export Prompt from "./Prompt";
77
export Redirect from "./Redirect";
88
export Route from "./Route";
99
export Router from "./Router";
10+
import RouterContext from "./RouterContext";
1011
export StaticRouter from "./StaticRouter";
1112
export Switch from "./Switch";
1213
export generatePath from "./generatePath";

0 commit comments

Comments
 (0)