-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
docs: Add "Babel Plugin Macros" guide #9963
Merged
KyleAMathews
merged 3 commits into
gatsbyjs:master
from
jgierer12:docs-babel-plugin-macros
Nov 16, 2018
Merged
docs: Add "Babel Plugin Macros" guide #9963
KyleAMathews
merged 3 commits into
gatsbyjs:master
from
jgierer12:docs-babel-plugin-macros
Nov 16, 2018
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jgierer12
added
type: documentation
An issue or pull request for improving or updating Gatsby's documentation
status: WIP
labels
Nov 16, 2018
jgierer12
force-pushed
the
docs-babel-plugin-macros
branch
from
November 16, 2018 00:58
a018dab
to
f6e7ff7
Compare
Reads great! I don't think it's necessary to make clear it's not installed by default in other frameworks as this is an advanced feature so most people reading it would be able to figure this out, probably. I'll merge this now but if you'd like to do a follow-up PR listing some other popular plugins, that'd be great! |
KyleAMathews
approved these changes
Nov 16, 2018
pieh
pushed a commit
that referenced
this pull request
Nov 16, 2018
Sorry, didn't realize this had to be updated manually... Related to #9963
gpetrioli
pushed a commit
to gpetrioli/gatsby
that referenced
this pull request
Jan 22, 2019
* Add "Babel Plugin Macros" guide * Run Prettier * Update babel-plugin-macros.md
gpetrioli
pushed a commit
to gpetrioli/gatsby
that referenced
this pull request
Jan 22, 2019
Sorry, didn't realize this had to be updated manually... Related to gatsbyjs#9963
This was referenced Nov 17, 2020
This was referenced Sep 15, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
type: documentation
An issue or pull request for improving or updating Gatsby's documentation
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Some thoughts:
Babel Macros
? This guide is more about the macros themselves than the plugin.This might get too long, and is pretty well described in the docs of each macro.
preval
example would bevar x = 1
. But I'm not sure if that would be too confusing since it doesn't have anything to do with thepreval
macro itself.