Update to babel-plugin-transform-es2015-block-scoping 6.23 (#9002)
Now we won't add closures unnecessarily. I verified that we have no code that throws -- adding some then running `grunt build:modules` correctly throws.
Ben Alpert committed
Feb 14, 2017 at 11:24 UTC
d20dea1de2461f71f410c228cbda6f7a23139203
3 files changed
+51
-20
.babelrc
+1
-1
@@ -18,7 +18,7 @@
18
["transform-es2015-spread", { "loose": true }],
19
"transform-es2015-parameters",
20
["transform-es2015-destructuring", { "loose": true }],
21
- "transform-es2015-block-scoping",
21
+ ["transform-es2015-block-scoping", { "throwIfClosureRequired": true }],
22
"transform-es2015-modules-commonjs",
23
"transform-es3-member-expression-literals",
24
"transform-es3-property-literals",
package.json
+1
-1
@@ -15,7 +15,7 @@
15
"babel-plugin-transform-class-properties": "^6.11.5",
16
"babel-plugin-transform-es2015-arrow-functions": "^6.5.2",
17
"babel-plugin-transform-es2015-block-scoped-functions": "^6.5.0",
18
- "babel-plugin-transform-es2015-block-scoping": "^6.5.0",
18
+ "babel-plugin-transform-es2015-block-scoping": "^6.23.0",
19
"babel-plugin-transform-es2015-classes": "^6.5.2",
20
"babel-plugin-transform-es2015-computed-properties": "^6.5.2",
21
"babel-plugin-transform-es2015-destructuring": "^6.5.0",
yarn.lock
+49
-18
@@ -498,6 +498,12 @@ babel-messages@^6.22.0:
498
dependencies:
499
babel-runtime "^6.22.0"
500
501
+babel-messages@^6.23.0:
502
+ version "6.23.0"
503
+ resolved "https://registry.yarnpkg.com/babel-messages/-/babel-messages-6.23.0.tgz#f3cdf4703858035b2a2951c6ec5edf6c62f2630e"
504
+ dependencies:
505
+ babel-runtime "^6.22.0"
506
+
507
babel-plugin-check-es2015-constants@^6.5.0:
508
version "6.22.0"
509
resolved "https://registry.yarnpkg.com/babel-plugin-check-es2015-constants/-/babel-plugin-check-es2015-constants-6.22.0.tgz#35157b101426fd2ffd3da3f75c7d1e91835bbf8a"
@@ -612,14 +618,14 @@ babel-plugin-transform-es2015-block-scoped-functions@^6.5.0:
618
dependencies:
619
babel-runtime "^6.22.0"
620
615
-babel-plugin-transform-es2015-block-scoping@^6.5.0:
616
- version "6.22.0"
617
- resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-block-scoping/-/babel-plugin-transform-es2015-block-scoping-6.22.0.tgz#00d6e3a0bebdcfe7536b9d653b44a9141e63e47e"
621
+babel-plugin-transform-es2015-block-scoping@^6.23.0:
622
+ version "6.23.0"
623
+ resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-block-scoping/-/babel-plugin-transform-es2015-block-scoping-6.23.0.tgz#e48895cf0b375be148cd7c8879b422707a053b51"
624
dependencies:
625
babel-runtime "^6.22.0"
620
- babel-template "^6.22.0"
621
- babel-traverse "^6.22.0"
622
- babel-types "^6.22.0"
626
+ babel-template "^6.23.0"
627
+ babel-traverse "^6.23.0"
628
+ babel-types "^6.23.0"
629
lodash "^4.2.0"
630
631
babel-plugin-transform-es2015-classes@^6.5.2:
@@ -833,6 +839,16 @@ babel-template@^6.16.0, babel-template@^6.22.0:
839
babylon "^6.11.0"
840
lodash "^4.2.0"
841
842
+babel-template@^6.23.0:
843
+ version "6.23.0"
844
+ resolved "https://registry.yarnpkg.com/babel-template/-/babel-template-6.23.0.tgz#04d4f270adbb3aa704a8143ae26faa529238e638"
845
+ dependencies:
846
+ babel-runtime "^6.22.0"
847
+ babel-traverse "^6.23.0"
848
+ babel-types "^6.23.0"
849
+ babylon "^6.11.0"
850
+ lodash "^4.2.0"
851
+
852
babel-traverse@^6.15.0, babel-traverse@^6.18.0, babel-traverse@^6.22.0, babel-traverse@^6.22.1, babel-traverse@^6.9.0:
853
version "6.22.1"
854
resolved "https://registry.yarnpkg.com/babel-traverse/-/babel-traverse-6.22.1.tgz#3b95cd6b7427d6f1f757704908f2fc9748a5f59f"
@@ -847,6 +863,20 @@ babel-traverse@^6.15.0, babel-traverse@^6.18.0, babel-traverse@^6.22.0, babel-tr
863
invariant "^2.2.0"
864
lodash "^4.2.0"
865
866
+babel-traverse@^6.23.0:
867
+ version "6.23.1"
868
+ resolved "https://registry.yarnpkg.com/babel-traverse/-/babel-traverse-6.23.1.tgz#d3cb59010ecd06a97d81310065f966b699e14f48"
869
+ dependencies:
870
+ babel-code-frame "^6.22.0"
871
+ babel-messages "^6.23.0"
872
+ babel-runtime "^6.22.0"
873
+ babel-types "^6.23.0"
874
+ babylon "^6.15.0"
875
+ debug "^2.2.0"
876
+ globals "^9.0.0"
877
+ invariant "^2.2.0"
878
+ lodash "^4.2.0"
879
+
880
babel-types@^6.15.0, babel-types@^6.18.0, babel-types@^6.22.0:
881
version "6.22.0"
882
resolved "https://registry.yarnpkg.com/babel-types/-/babel-types-6.22.0.tgz#2a447e8d0ea25d2512409e4175479fd78cc8b1db"
@@ -856,6 +886,15 @@ babel-types@^6.15.0, babel-types@^6.18.0, babel-types@^6.22.0:
886
lodash "^4.2.0"
887
to-fast-properties "^1.0.1"
888
889
+babel-types@^6.23.0:
890
+ version "6.23.0"
891
+ resolved "https://registry.yarnpkg.com/babel-types/-/babel-types-6.23.0.tgz#bb17179d7538bad38cd0c9e115d340f77e7e9acf"
892
+ dependencies:
893
+ babel-runtime "^6.22.0"
894
+ esutils "^2.0.2"
895
+ lodash "^4.2.0"
896
+ to-fast-properties "^1.0.1"
897
+
898
babel@^5.4.7:
899
version "5.8.38"
900
resolved "https://registry.yarnpkg.com/babel/-/babel-5.8.38.tgz#dfb087c22894917c576fb67ce9cf328d458629fb"
@@ -1338,15 +1377,7 @@ concat-map@0.0.1:
1377
version "0.0.1"
1378
resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b"
1379
1341
-concat-stream@^1.4.6, concat-stream@^1.4.7, concat-stream@^1.5.0:
1342
- version "1.6.0"
1343
- resolved "https://registry.yarnpkg.com/concat-stream/-/concat-stream-1.6.0.tgz#0aac662fd52be78964d5532f694784e70110acf7"
1344
- dependencies:
1345
- inherits "^2.0.3"
1346
- readable-stream "^2.2.2"
1347
- typedarray "^0.0.6"
1348
-
1349
-concat-stream@~1.5.0, concat-stream@~1.5.1:
1380
+concat-stream@^1.4.6, concat-stream@^1.4.7, concat-stream@^1.5.0, concat-stream@~1.5.0, concat-stream@~1.5.1:
1381
version "1.5.2"
1382
resolved "https://registry.yarnpkg.com/concat-stream/-/concat-stream-1.5.2.tgz#708978624d856af41a5a741defdd261da752c266"
1383
dependencies:
@@ -2738,7 +2769,7 @@ inherits@1:
2769
version "1.0.2"
2770
resolved "https://registry.yarnpkg.com/inherits/-/inherits-1.0.2.tgz#ca4309dadee6b54cc0b8d247e8d7c7a0975bdc9b"
2771
2741
-inherits@2, inherits@^2.0.1, inherits@^2.0.3, inherits@~2.0.0, inherits@~2.0.1:
2772
+inherits@2, inherits@^2.0.1, inherits@~2.0.0, inherits@~2.0.1:
2773
version "2.0.3"
2774
resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.3.tgz#633c2c83e3da42a502f52466022480f4208261de"
2775
@@ -4262,7 +4293,7 @@ read-pkg@^1.0.0:
4293
isarray "0.0.1"
4294
string_decoder "~0.10.x"
4295
4265
-"readable-stream@^2.0.0 || ^1.1.13", readable-stream@^2.0.1, readable-stream@^2.0.2, readable-stream@^2.1.0, readable-stream@^2.1.5, readable-stream@^2.2.2:
4296
+"readable-stream@^2.0.0 || ^1.1.13", readable-stream@^2.0.1, readable-stream@^2.0.2, readable-stream@^2.1.0, readable-stream@^2.1.5:
4297
version "2.2.2"
4298
resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.2.2.tgz#a9e6fec3c7dda85f8bb1b3ba7028604556fc825e"
4299
dependencies:
@@ -4990,7 +5021,7 @@ type-check@~0.3.2:
5021
dependencies:
5022
prelude-ls "~1.1.2"
5023
4993
-typedarray@^0.0.6, typedarray@~0.0.5:
5024
+typedarray@~0.0.5:
5025
version "0.0.6"
5026
resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777"
5027