Skip to content

Commit 215ce0e

Browse files
authored
fix(gatsby): improve import/export in gatsby-browser-entry (#36484)
1 parent 58eee35 commit 215ce0e

File tree

1 file changed

+9
-17
lines changed

1 file changed

+9
-17
lines changed

packages/gatsby/cache-dir/gatsby-browser-entry.js

+9-17
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,5 @@
11
import React from "react"
22
import PropTypes from "prop-types"
3-
import Link, {
4-
withPrefix,
5-
withAssetPrefix,
6-
navigate,
7-
push,
8-
replace,
9-
navigateTo,
10-
parsePath,
11-
} from "gatsby-link"
12-
import { useScrollRestoration } from "gatsby-react-router-scroll"
13-
import PageRenderer from "./public-page-renderer"
143
import loader from "./loader"
154

165
const prefetchPathname = loader.enqueue
@@ -98,17 +87,20 @@ function graphql() {
9887
)
9988
}
10089

90+
export { default as PageRenderer } from "./public-page-renderer"
91+
export { useScrollRestoration } from "gatsby-react-router-scroll"
10192
export {
102-
Link,
103-
withAssetPrefix,
93+
default as Link,
10494
withPrefix,
105-
graphql,
106-
parsePath,
95+
withAssetPrefix,
10796
navigate,
108-
useScrollRestoration,
97+
parsePath,
98+
} from "gatsby-link"
99+
100+
export {
101+
graphql,
109102
StaticQueryContext,
110103
StaticQuery,
111-
PageRenderer,
112104
useStaticQuery,
113105
prefetchPathname,
114106
}

0 commit comments

Comments
 (0)