-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
vendor redux-first-router-link forwardRef support
- Loading branch information
Showing
11 changed files
with
312 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
build | ||
vendor | ||
static/app/js |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,4 +14,5 @@ | |
/components/ | ||
/inputs/ | ||
/views/ | ||
/vendor/ | ||
/__tests__/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import babel from "@rollup/plugin-babel"; | ||
|
||
export default [ | ||
{ | ||
input: "node_modules/redux-first-router-link/src/index.js", | ||
plugins: [ | ||
babel({ | ||
plugins: ["@babel/plugin-transform-flow-strip-types"], | ||
}), | ||
{ | ||
resolveId(id) { | ||
if ( | ||
id === "rudy-history/PathUtils" || | ||
id === "redux-first-router" || | ||
id === "rudy-match-path" | ||
) { | ||
return { | ||
id: "./redux-first-router.js", | ||
external: true, | ||
}; | ||
} | ||
}, | ||
}, | ||
], | ||
external: ["react", "react-redux"], | ||
output: { | ||
file: "packages/react/src/vendor/redux-first-router-link.js", | ||
}, | ||
}, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,2 @@ | ||
import React from "react"; | ||
import * as ReduxFirstRouterLink from "redux-first-router-link"; | ||
|
||
const { NavLink } = ReduxFirstRouterLink; | ||
|
||
export default function Link(props) { | ||
return <NavLink {...props} />; | ||
} | ||
import { NavLink as Link } from "../vendor/redux-first-router-link.js"; | ||
export default Link; |
Oops, something went wrong.