Skip to content

Commit 8f51518

Browse files
collinglebec
authored andcommitted
ran babel-upgrade to keep up with beta (#125)
* ran babel-upgrade to keep up with beta * restore whitespace in .babelrc comments
1 parent 504d45e commit 8f51518

File tree

3 files changed

+2821
-1609
lines changed

3 files changed

+2821
-1609
lines changed

.babelrc

Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,32 @@
11
{
2-
presets: ['@babel/react', '@babel/env', ["@babel/preset-stage-2", { "decoratorsLegacy": true }]]
3-
/*
2+
"presets": [
3+
"@babel/react",
4+
"@babel/env"
5+
/*
46
Babel uses these "presets" to know how to transpile your Javascript code. Here's what we're saying with these:
57
68
'react': teaches Babel to recognize JSX - a must have for React!
79
810
'env': teaches Babel to transpile Javascript . This preset is highly configurable, and you can reduce the size of your bundle by limiting the number of features you transpile. Learn more here: https://github.com/babel/babel-preset-env
9-
10-
'stage-2': teaches Babel to recognize EcmaScript language features that have reached "stage 2" in the process of approval for inclusion in the official EcmaScript specification (called the "TC39 process"). There are 5 stages in the process, starting at 0 (basically a brand new proposal) going up to 4 (finished and ready for inclusion). Read more about it here: http://2ality.com/2015/11/tc39-process.html. Using new language features before they're officially part of EcmaScript is fun, but it also carries a risk: sometimes proposed features can change substantially (or be rejected entirely) before finally being included in the language, so if you jump on the bandwagon too early, you risk having your code be dependent on defunct/nonstandard syntax! "Stage 2" is a fairly safe place to start - after stage 2, the feature is well on its way to official inclusion and only minor changes are expected.
11-
*/
11+
*/
12+
],
13+
"plugins": [
14+
/*
15+
These plugins teach Babel to recognize EcmaScript language features that have reached "stage 2" in the process of approval for inclusion in the official EcmaScript specification (called the "TC39 process"). There are 5 stages in the process, starting at 0 (basically a brand new proposal) going up to 4 (finished and ready for inclusion). Read more about it here: http://2ality.com/2015/11/tc39-process.html. Using new language features before they're officially part of EcmaScript is fun, but it also carries a risk: sometimes proposed features can change substantially (or be rejected entirely) before finally being included in the language, so if you jump on the bandwagon too early, you risk having your code be dependent on defunct/nonstandard syntax! "Stage 2" is a fairly safe place to start - after stage 2, the feature is well on its way to official inclusion and only minor changes are expected.
16+
*/
17+
"@babel/plugin-syntax-dynamic-import",
18+
"@babel/plugin-syntax-import-meta",
19+
"@babel/plugin-proposal-class-properties",
20+
"@babel/plugin-proposal-json-strings",
21+
[
22+
"@babel/plugin-proposal-decorators",
23+
{
24+
"legacy": true
25+
}
26+
],
27+
"@babel/plugin-proposal-function-sent",
28+
"@babel/plugin-proposal-export-namespace-from",
29+
"@babel/plugin-proposal-numeric-separator",
30+
"@babel/plugin-proposal-throw-expressions"
31+
]
1232
}

0 commit comments

Comments
 (0)