Skip to content

Commit

Permalink
Mention polyfills in setupScript config
Browse files Browse the repository at this point in the history
We've come across a place where we probably have to polyfill
window.crypto. I wanted to make it clearer where to do this, so I added
something to the `setupScript` documentation.
  • Loading branch information
trotzig committed Jun 7, 2018
1 parent e832302 commit bf99c50
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -612,8 +612,8 @@ module.exports = {

A path to a file that will be executed before rendering your components. This
is useful if you for instance want to inject global css styling (e.g. a css
reset), custom fonts, etc. This script is executed in a DOM environment, so
it's safe to inject things into the `<head>`.
reset), custom fonts, polyfills etc. This script is executed in a DOM
environment, so it's safe to inject things into the `<head>`.

```js
const path = require('path');
Expand Down

0 comments on commit bf99c50

Please sign in to comment.