-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move gatsby-link into gatsby (#3864)
* move Link component from gatsby-link to gatsby package This change is mostly copying the files from `gatsby-link` package to `gatsby` package. Have added a missing dependency (prop-types) and changed the `main` file to `dist/index.js` in gatsby's package.json. * add TypeScript definition for Link component Just copying over index.d.ts from `gatsby-link` package to `gatsby` and removing default export as we don't export `Link` component as the default one. * delete babelrc from gatsby package existing babel setup should already handle this! * revert moving gatsby-link source to gatsby * browser.js to export link components
- Loading branch information
1 parent
2f489ad
commit 4763bbd
Showing
3 changed files
with
6 additions
and
18 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
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,3 @@ | ||
import Link, { withPrefix, navigateTo } from 'gatsby-link' | ||
|
||
export { Link, withPrefix, navigateTo } |
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