Skip to content
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

Merged
merged 29 commits into from
Aug 18, 2017
Merged
Changes from 1 commit
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
7ef3fe6
Here's what I'm thinking...
atrauzzi Aug 6, 2017
a907304
Didn't realize this ran the root element plugin!
atrauzzi Aug 6, 2017
080c9ef
Merge branch 'master' into topics/async-browser-plugins
atrauzzi Aug 6, 2017
fdc5309
Perform similar bootstrap for production apps.
atrauzzi Aug 6, 2017
0e9235a
Merge branch 'topics/async-browser-plugins' of github.com:atrauzzi/ga…
atrauzzi Aug 6, 2017
7a1dfc8
Remove spaces.
atrauzzi Aug 7, 2017
139ef3a
Introduce a new async API runner for browsers.
atrauzzi Aug 7, 2017
e9261c0
Add support for configurable auto polyfilling.
atrauzzi Aug 7, 2017
8618a81
Some documentation.
atrauzzi Aug 8, 2017
e4a85ae
Update docs.
atrauzzi Aug 8, 2017
69e57fd
Should be on payload.
atrauzzi Aug 8, 2017
3b775f5
Merge remote-tracking branch 'upstream/master' into topics/async-brow…
atrauzzi Aug 8, 2017
1ffb082
Merge remote-tracking branch 'upstream/master' into topics/async-brow…
atrauzzi Aug 8, 2017
99e91f6
Amend the check.
atrauzzi Aug 9, 2017
640258e
Fix expected state for config tests.
atrauzzi Aug 9, 2017
e738266
Add polyfill variable to every configuration.
atrauzzi Aug 10, 2017
8e74607
Merge branch 'master' into topics/async-browser-plugins
KyleAMathews Aug 10, 2017
5f08f9c
Keeping up with master.
atrauzzi Aug 13, 2017
9cc6beb
Updated to use async again.
atrauzzi Aug 13, 2017
ae60de4
Merge branch 'topics/async-browser-plugins' of github.com:atrauzzi/ga…
atrauzzi Aug 13, 2017
46327e4
Merge branch 'master' into topics/async-browser-plugins
KyleAMathews Aug 14, 2017
810be19
Merge again.
atrauzzi Aug 15, 2017
a78b35e
Merge branch 'topics/async-browser-plugins' of github.com:atrauzzi/ga…
atrauzzi Aug 15, 2017
eaffa6b
Merge branch 'master' into topics/async-browser-plugins
sebastienfi Aug 16, 2017
4988319
Merge branch 'master' into topics/async-browser-plugins
sebastienfi Aug 17, 2017
81917e6
Merge branch 'master' into topics/async-browser-plugins
atrauzzi Aug 17, 2017
6ccb27b
Run format and edit docs page
KyleAMathews Aug 18, 2017
61d11a5
Merge branch 'master' into topics/async-browser-plugins
KyleAMathews Aug 18, 2017
42e3bb3
fix
KyleAMathews Aug 18, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion docs/docs/browserslist.md → docs/docs/browser-support.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,22 @@
---
Copy link
Contributor

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.

title: Browserslist
title: Browser Support
---

Copy link
Contributor

Choose a reason for hiding this comment

The 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/
Expand Down