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

Fixes gatsby-plugin-chakra-ui transpilation errors #265

Merged
merged 4 commits into from
Dec 4, 2019

Conversation

alexlobera
Copy link
Contributor

This PR fixes this issue gatsbyjs/19042

The problem is the plugin is not transpiled before being published to npm.
image

With this PR the code will be transpiled before publishing as follows:
image

@alexluong
Copy link
Contributor

Hey @alexlbr, thank you so much for the PR.

So just to clarify, for plugin authors, we should always transpile gatsby-browser.js and gatsby-ssr.js to make sure it works in all situation?

@alexlobera
Copy link
Contributor Author

alexlobera commented Nov 25, 2019

@alexluong official Gatsby plugins are transpiled e.g. https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby-link/.babelrc. I would personally transpile any package of any project that goes to npm because we don't know where and how it will be run

@segunadebayo
Copy link
Member

Thank you for this PR @alexlbr. @alexluong can you confirm this is ready to merge?

@segunadebayo segunadebayo merged commit bd68693 into chakra-ui:master Dec 4, 2019
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.

None yet

3 participants