-
Notifications
You must be signed in to change notification settings - Fork 10.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Async onClientEntry #1735
Async onClientEntry #1735
Changes from 1 commit
7ef3fe6
a907304
080c9ef
fdc5309
0e9235a
7a1dfc8
139ef3a
e9261c0
8618a81
e4a85ae
69e57fd
3b775f5
1ffb082
99e91f6
640258e
e738266
8e74607
5f08f9c
9cc6beb
ae60de4
46327e4
810be19
a78b35e
eaffa6b
4988319
81917e6
6ccb27b
61d11a5
42e3bb3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,22 @@ | ||
--- | ||
title: Browserslist | ||
title: Browser Support | ||
--- | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add/replace the text at the start saying "Gatsby supports the same browsers as the stable version of React.js which is currently IE9+ as well as the most recent versions of other popular browsers. Gatsby requires support for the Promise API which is not supported in older browsers. Because of this, Gatsby…" |
||
## ES6 Promises | ||
|
||
When running on the browser, Gatsby makes use of the [Promise API](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Promise) so that plugins can run asynchronous code early on during bootstrap. | ||
|
||
Because of this, Gatsby by default includes a Promise polyfill when building your site. If you would like to provide your own promise implementation, you can set `polyfill` to `false` in your `gatsby-config.js`: | ||
|
||
``` | ||
module.exports = { | ||
polyfill: false, | ||
// ... | ||
} | ||
``` | ||
|
||
## Browserslist | ||
|
||
You may customize your list of supported browser versions by declaring a [`"browserslist"`](https://github.com/ai/browserslist) key within your `package.json`. Changing these values will modify your JavaScript (via [`babel-preset-env`](https://github.com/babel/babel-preset-env#targetsbrowsers)) and your CSS (via [`autoprefixer`](https://github.com/postcss/autoprefixer)) output. | ||
|
||
This article is a good introduction to the growing community around Browserslist — https://css-tricks.com/browserlist-good-idea/ | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You'll also need to update the
doc-links.yaml
file with the new link.