Answer the question
In order to leave comments, you need to log in
Which of the presets does Babel use when compiling code?
In my .babelrc file I have:
"presets": [
"es2015",
"stage-0"
],
Answer the question
In order to leave comments, you need to log in
Each preset is just a set of plugins
plugins are of 2 types - syntactic and transformational
syntactic plugins work at the stage of parsing the code and are needed to build an ast tree
transformation plugins work with a ready ast tree and change it
all plugins of the same type work essentially together
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question