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

feat(gatsby-plugin-typescript): allow specifying babel preset options #10248

Merged
merged 3 commits into from
Dec 4, 2018

Conversation

colebemis
Copy link
Contributor

@babel/preset-typescript accepts options but there is currently no way to set those options with gatsby-plugin-typescript. This pull passes the plugin options to the babel preset.

Copy link
Contributor

@pieh pieh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verified locally and works nicely. Only request is to add section in documentation ( https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby-plugin-typescript/README.md ) to describe how to pass options to @babel/preset-typescript

@colebemis
Copy link
Contributor Author

@pieh Good call! Just updated the README 👍

Copy link
Contributor

@pieh pieh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome! Thanks @colebemis!

@pieh
Copy link
Contributor

pieh commented Dec 4, 2018

Ops, some linting problem - I'll just fix that really quick and merge

@pieh pieh changed the title [gatsby-plugin-typescript]: Allow babel preset options feat(gatsby-plugin-typescript): allow specyfying babel preset options Dec 4, 2018
@pieh pieh changed the title feat(gatsby-plugin-typescript): allow specyfying babel preset options feat(gatsby-plugin-typescript): allow specifying babel preset options Dec 4, 2018
@pieh pieh merged commit f106241 into gatsbyjs:master Dec 4, 2018
@gatsbot
Copy link

gatsbot bot commented Dec 4, 2018

Holy buckets, @colebemis — we just merged your PR to Gatsby! 💪💜

Gatsby is built by awesome people like you. Let us say “thanks” in two ways:

  1. We’d like to send you some Gatsby swag. As a token of our appreciation, you can go to the Gatsby Swag Store and log in with your GitHub account to get a coupon code good for one free piece of swag. (Currently we’ve got a couple t-shirts available, plus some socks that are really razzing our berries right now.)
  2. We just invited you to join the Gatsby organization on GitHub. This will add you to our team of maintainers. Accept the invite by visiting https://github.com/orgs/gatsbyjs/invitation. By joining the team, you’ll be able to label issues, review pull requests, and merge approved pull requests.

If there’s anything we can do to help, please don’t hesitate to reach out to us: tweet at @gatsbyjs and we’ll come a-runnin’.

Thanks again!

m-allanson added a commit to Bouncey/gatsby that referenced this pull request Dec 7, 2018
* master: (1595 commits)
  chore: update link for react-gatsby-firebase-authentication (gatsbyjs#10314)
  fix(www): Awesome Gatsby sidebar link (gatsbyjs#10313)
  Add thijs koerselman to creators list (gatsbyjs#10303)
  chore(release): Publish
  fix(gatsby-plugin-emotion): allow for React.Fragment shorthand syntax (gatsbyjs#10291)
  feat(www): Update starter cards (gatsbyjs#10258)
  Update index.md (gatsbyjs#10307)
  Update index.md (gatsbyjs#10306)
  Add thijs koerselman portfolio to sites list (gatsbyjs#10304)
  chore(release): Publish
  fix(gatsby): don't remount matchPath pages (gatsbyjs#10261)
  chore(release): Publish
  feat(gatsby-source-contentful): enable RichText for all users (gatsbyjs#10301)
  docs(tutorial): update 404 screenshot (gatsbyjs#10295)
  feat(gatsby-plugin-typescript): allow specifying babel preset options (gatsbyjs#10248)
  docs(gatsby-plugin-sass): fix typo in docs (gatsbyjs#10292)
  fix(ci): actually only run tests on non-docs changes (gatsbyjs#10287)
  fix(blog): rename for correct date in link (gatsbyjs#10290)
  Adds a more descriptive link purpose (gatsbyjs#9266)
  fix(www): comment out down showcase site
  ...
gpetrioli pushed a commit to gpetrioli/gatsby that referenced this pull request Jan 22, 2019
…gatsbyjs#10248)

* Pass through babel preset options

* Add options section to gatsby-plugin-typescript docs

* format
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants