Skip to content

Commit 674fdaf

Browse files
nathfNoviny
authored andcommitted
Upgrade babylon-options to support Babel 7 (#28)
* Add required decoratorsBeforeExport option to decorators plugin * Upgrade babylon-options
1 parent 9215409 commit 674fdaf

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1344,7 +1344,7 @@ function extractReactTypes(
13441344
filename /*:? string */,
13451345
resolveOptions /*:? Object */
13461346
) {
1347-
let plugins = ['jsx', 'decorators'];
1347+
let plugins = ['jsx'];
13481348
if (!resolveOptions) resolveOptions = {};
13491349

13501350
if (!resolveOptions.extensions) {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"babel-react-components": "^1.1.0",
2424
"babel-type-scopes": "^1.1.0",
2525
"babylon": "^7.0.0-beta.22",
26-
"babylon-options": "^1.1.2",
26+
"babylon-options": "^2.0.1",
2727
"strip-indent": "^2.0.0"
2828
},
2929
"devDependencies": {

yarn.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -658,9 +658,9 @@ babel-types@^6.18.0, babel-types@^6.24.1, babel-types@^6.26.0:
658658
lodash "^4.17.4"
659659
to-fast-properties "^1.0.3"
660660

661-
babylon-options@^1.1.2:
662-
version "1.1.2"
663-
resolved "https://registry.yarnpkg.com/babylon-options/-/babylon-options-1.1.2.tgz#e38c23117841d5f032dddcba637540842c8e1137"
661+
babylon-options@^2.0.1:
662+
version "2.0.1"
663+
resolved "https://registry.yarnpkg.com/babylon-options/-/babylon-options-2.0.1.tgz#cc797a8ff65f8a98ae3f1d57a4626f987fc50620"
664664

665665
babylon@^6.18.0:
666666
version "6.18.0"

0 commit comments

Comments
 (0)