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

[pull] master from gatsbyjs:master #425

Merged
merged 6 commits into from
Feb 25, 2021
Merged

[pull] master from gatsbyjs:master #425

merged 6 commits into from
Feb 25, 2021

Conversation

pull[bot]
Copy link

@pull pull bot commented Feb 25, 2021

See Commits and Changes for more details.


Created by pull[bot]

Can you help keep this open source service alive? 💖 Please sponsor : )

LB and others added 6 commits February 25, 2021 07:52
* initial loader removal

* fix order

* forgot to commit yarn lock

* try to trigger bootstrap again

* remove rules and move to options

* remove rule

* use extensions instead

* exclude doesn't take a function

* adjust plugins instead of rules

* add missing block scope

* need to pass schema

* fix the develop refresh stuff

* upgrade eslint
* chore(gatsby): upgrade socket.io

* fix types
…#29260)

* feat(babel-preset-gatsby): allow passing importSource to preset-react

With React 17's new JSX transform feature, it is possible to pass a custom JSX factory besides React's default one. This is useful when working with libraries like Emotion 11: https://emotion.sh/docs/css-prop#babel-preset.

In order to support this feature in `babel-preset-gatsby`, this PR adds an option called `reactImportSource` that is passed down to the underlying `@babel/preset-react` preset option `importSource`.

Users of `babel-preset-gatsby` can then use this like so:

```json
{
  "presets": [
    [
      "babel-preset-gatsby",
      { "reactRuntime": "automatic", "reactImportSource": "@emotion/react" }
    ]
  ]
}
```

* conditionally pass through the preset option rather than undefined

* throwing if runtime is wrong, move the logic out of the object

* clean up tests, change syntax

Co-authored-by: Laurie <laurie@gatsbyjs.com>
Co-authored-by: Renovate Bot <bot@renovateapp.com>
* Add helper docs

* Update

* More details on CMS resolvers

* Apply suggestions from code review

Co-authored-by: LB <laurie@gatsbyjs.com>

* chore: format

Co-authored-by: LB <laurie@gatsbyjs.com>
Co-authored-by: gatsbybot <mathews.kyle+gatsbybot@gmail.com>
@pull pull bot added the ⤵️ pull label Feb 25, 2021
@pull pull bot merged commit aeab2d4 into mySMB:master Feb 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants