Skip to content
This repository was archived by the owner on Feb 6, 2023. It is now read-only.

Commit ec5eaf5

Browse files
author
Claudio Procida
committed
Adds support for nullish coalescing operator
1 parent 23fc70f commit ec5eaf5

File tree

5 files changed

+72
-2
lines changed

5 files changed

+72
-2
lines changed

gulpfile.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ var babelOptsJS = {
4848
rewriteModules: {map: moduleMap},
4949
}),
5050
],
51+
plugins: [require('@babel/plugin-proposal-nullish-coalescing-operator')],
5152
};
5253

5354
var babelOptsFlow = {
@@ -57,6 +58,7 @@ var babelOptsFlow = {
5758
rewriteModules: {map: moduleMap},
5859
}),
5960
],
61+
plugins: [require('@babel/plugin-proposal-nullish-coalescing-operator')],
6062
};
6163

6264
var COPYRIGHT_HEADER = `/**

meta/bundle-size-stats/Draft.js.json

Lines changed: 27 additions & 1 deletion
Large diffs are not rendered by default.

meta/bundle-size-stats/Draft.min.js.json

Lines changed: 27 additions & 1 deletion
Large diffs are not rendered by default.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
"test-ci": "cross-env NODE_ENV=test npm run lint && npm run flow && npm run test"
3333
},
3434
"dependencies": {
35+
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.4.4",
3536
"fbjs": "^1.0.0",
3637
"immutable": "~3.7.4",
3738
"object-assign": "^4.1.0"

yarn.lock

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,14 @@
252252
"@babel/helper-create-class-features-plugin" "^7.3.4"
253253
"@babel/helper-plugin-utils" "^7.0.0"
254254

255+
"@babel/plugin-proposal-nullish-coalescing-operator@^7.4.4":
256+
version "7.4.4"
257+
resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-nullish-coalescing-operator/-/plugin-proposal-nullish-coalescing-operator-7.4.4.tgz#41c360d59481d88e0ce3a3f837df10121a769b39"
258+
integrity sha512-Amph7Epui1Dh/xxUxS2+K22/MUi6+6JVTvy3P58tja3B6yKTSjwwx0/d83rF7551D6PVSSoplQb8GCwqec7HRw==
259+
dependencies:
260+
"@babel/helper-plugin-utils" "^7.0.0"
261+
"@babel/plugin-syntax-nullish-coalescing-operator" "^7.2.0"
262+
255263
"@babel/plugin-proposal-object-rest-spread@^7.0.0":
256264
version "7.3.4"
257265
resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.3.4.tgz#47f73cf7f2a721aad5c0261205405c642e424654"
@@ -281,6 +289,13 @@
281289
dependencies:
282290
"@babel/helper-plugin-utils" "^7.0.0"
283291

292+
"@babel/plugin-syntax-nullish-coalescing-operator@^7.2.0":
293+
version "7.2.0"
294+
resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.2.0.tgz#f75083dfd5ade73e783db729bbd87e7b9efb7624"
295+
integrity sha512-lRCEaKE+LTxDQtgbYajI04ddt6WW0WJq57xqkAZ+s11h4YgfRHhVA/Y2VhfPzzFD4qeLHWg32DMp9HooY4Kqlg==
296+
dependencies:
297+
"@babel/helper-plugin-utils" "^7.0.0"
298+
284299
"@babel/plugin-syntax-object-rest-spread@^7.0.0", "@babel/plugin-syntax-object-rest-spread@^7.2.0":
285300
version "7.2.0"
286301
resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.2.0.tgz#3b7a3e733510c57e820b9142a6579ac8b0dfad2e"

0 commit comments

Comments
 (0)