Skip to content

Commit

Permalink
Expose generatePath (#5661)
Browse files Browse the repository at this point in the history
* Expose generatePath

* Update package.json

* Update index.js

* Create generatePath.js
  • Loading branch information
rybon authored and timdorr committed Nov 8, 2017
1 parent f8887ad commit 7cda4bd
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/react-router-dom/modules/generatePath.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// Written in this round about way for babel-transform-imports
import { generatePath } from 'react-router'
export default generatePath
1 change: 1 addition & 0 deletions packages/react-router-dom/modules/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@ export Route from './Route'
export Router from './Router'
export StaticRouter from './StaticRouter'
export Switch from './Switch'
export generatePath from './generatePath'
export matchPath from './matchPath'
export withRouter from './withRouter'
1 change: 1 addition & 0 deletions packages/react-router/modules/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@ export Route from './Route'
export Router from './Router'
export StaticRouter from './StaticRouter'
export Switch from './Switch'
export generatePath from './generatePath'
export matchPath from './matchPath'
export withRouter from './withRouter'
1 change: 1 addition & 0 deletions packages/react-router/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"Switch.js",
"es",
"index.js",
"generatePath.js",
"matchPath.js",
"withRouter.js",
"umd"
Expand Down

0 comments on commit 7cda4bd

Please sign in to comment.