Skip to content

Commit 5d93e5a

Browse files
author
Shahaf Shaked
authored
Merge pull request #86 from nirapx/tree-shaking-babel
tree shaking babel
2 parents 5e91abf + f435918 commit 5d93e5a

File tree

3 files changed

+49
-0
lines changed

3 files changed

+49
-0
lines changed

babel.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ module.exports = function(api) {
77
}],
88
],
99
plugins: [
10+
'lodash',
1011
'@babel/plugin-proposal-export-default-from',
1112
'@babel/plugin-proposal-export-namespace-from',
1213
],

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
"@babel/plugin-proposal-export-namespace-from": "^7.10.4",
5050
"@babel/preset-env": "^7.11.5",
5151
"babel-eslint": "^10.1.0",
52+
"babel-plugin-lodash": "^3.3.4",
5253
"concurrently": "^5.3.0",
5354
"copyfiles": "^2.3.0",
5455
"cross-env": "^7.0.2",

yarn.lock

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,13 @@
158158
dependencies:
159159
"@babel/types" "^7.11.0"
160160

161+
"@babel/helper-module-imports@^7.0.0-beta.49":
162+
version "7.18.6"
163+
resolved "https://registry.yarnpkg.com/@babel/helper-module-imports/-/helper-module-imports-7.18.6.tgz#1e3ebdbbd08aad1437b428c50204db13c5a3ca6e"
164+
integrity sha512-0NFvs3VkuSYbFi1x2Vd6tKrywq+z/cLeYC/RJNFrIX/30Bf5aiGYbtvGXolEktzJH8o5E5KJ3tT+nkxuuZFVlA==
165+
dependencies:
166+
"@babel/types" "^7.18.6"
167+
161168
"@babel/helper-module-imports@^7.10.4":
162169
version "7.10.4"
163170
resolved "https://registry.yarnpkg.com/@babel/helper-module-imports/-/helper-module-imports-7.10.4.tgz#4c5c54be04bd31670a7382797d75b9fa2e5b5620"
@@ -239,11 +246,21 @@
239246
dependencies:
240247
"@babel/types" "^7.11.0"
241248

249+
"@babel/helper-string-parser@^7.18.10":
250+
version "7.18.10"
251+
resolved "https://registry.yarnpkg.com/@babel/helper-string-parser/-/helper-string-parser-7.18.10.tgz#181f22d28ebe1b3857fa575f5c290b1aaf659b56"
252+
integrity sha512-XtIfWmeNY3i4t7t4D2t02q50HvqHybPqW2ki1kosnvWCwuCMeo81Jf0gwr85jy/neUdg5XDdeFE/80DXiO+njw==
253+
242254
"@babel/helper-validator-identifier@^7.10.4":
243255
version "7.10.4"
244256
resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.10.4.tgz#a78c7a7251e01f616512d31b10adcf52ada5e0d2"
245257
integrity sha512-3U9y+43hz7ZM+rzG24Qe2mufW5KhvFg/NhnNph+i9mgCtdTCtMJuI1TMkrIUiK7Ix4PYlRF9I5dhqaLYA/ADXw==
246258

259+
"@babel/helper-validator-identifier@^7.18.6":
260+
version "7.18.6"
261+
resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.18.6.tgz#9c97e30d31b2b8c72a1d08984f2ca9b574d7a076"
262+
integrity sha512-MmetCkz9ej86nJQV+sFCxoGGrUbU3q02kgLciwkrt9QqEB7cP39oKEY0PakknEO0Gu20SskMRi+AYZ3b1TpN9g==
263+
247264
"@babel/helper-wrap-function@^7.10.4":
248265
version "7.10.4"
249266
resolved "https://registry.yarnpkg.com/@babel/helper-wrap-function/-/helper-wrap-function-7.10.4.tgz#8a6f701eab0ff39f765b5a1cfef409990e624b87"
@@ -873,6 +890,15 @@
873890
lodash "^4.17.19"
874891
to-fast-properties "^2.0.0"
875892

893+
"@babel/types@^7.0.0-beta.49", "@babel/types@^7.18.6":
894+
version "7.18.10"
895+
resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.18.10.tgz#4908e81b6b339ca7c6b7a555a5fc29446f26dde6"
896+
integrity sha512-MJvnbEiiNkpjo+LknnmRrqbY1GPUUggjv+wQVjetM/AONoupqRALB7I6jGqNUAZsKcRIEu2J6FRFvsczljjsaQ==
897+
dependencies:
898+
"@babel/helper-string-parser" "^7.18.10"
899+
"@babel/helper-validator-identifier" "^7.18.6"
900+
to-fast-properties "^2.0.0"
901+
876902
"@bcoe/v8-coverage@^0.2.3":
877903
version "0.2.3"
878904
resolved "https://registry.yarnpkg.com/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz#75a2e8b51cb758a7553d6804a5932d7aace75c39"
@@ -2638,6 +2664,17 @@ babel-plugin-jest-hoist@^26.2.0:
26382664
"@types/babel__core" "^7.0.0"
26392665
"@types/babel__traverse" "^7.0.6"
26402666

2667+
babel-plugin-lodash@^3.3.4:
2668+
version "3.3.4"
2669+
resolved "https://registry.yarnpkg.com/babel-plugin-lodash/-/babel-plugin-lodash-3.3.4.tgz#4f6844358a1340baed182adbeffa8df9967bc196"
2670+
integrity sha512-yDZLjK7TCkWl1gpBeBGmuaDIFhZKmkoL+Cu2MUUjv5VxUZx/z7tBGBCBcQs5RI1Bkz5LLmNdjx7paOyQtMovyg==
2671+
dependencies:
2672+
"@babel/helper-module-imports" "^7.0.0-beta.49"
2673+
"@babel/types" "^7.0.0-beta.49"
2674+
glob "^7.1.1"
2675+
lodash "^4.17.10"
2676+
require-package-name "^2.0.1"
2677+
26412678
babel-preset-current-node-syntax@^0.1.3:
26422679
version "0.1.3"
26432680
resolved "https://registry.yarnpkg.com/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-0.1.3.tgz#b4b547acddbf963cba555ba9f9cbbb70bfd044da"
@@ -6126,6 +6163,11 @@ lodash@^4, lodash@^4.17.12, lodash@^4.17.14, lodash@^4.17.15, lodash@^4.17.19, l
61266163
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.20.tgz#b44a9b6297bcb698f1c51a3545a2b3b368d59c52"
61276164
integrity sha512-PlhdFcillOINfeV7Ni6oF1TAEayyZBoZ8bcshTHqOYJYlrqzRK5hagpagky5o4HfCzzd1TRkXPMFq6cKk9rGmA==
61286165

6166+
lodash@^4.17.10:
6167+
version "4.17.21"
6168+
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c"
6169+
integrity sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==
6170+
61296171
loose-envify@^1.0.0, loose-envify@^1.4.0:
61306172
version "1.4.0"
61316173
resolved "https://registry.yarnpkg.com/loose-envify/-/loose-envify-1.4.0.tgz#71ee51fa7be4caec1a63839f7e682d8132d30caf"
@@ -7762,6 +7804,11 @@ require-main-filename@^2.0.0:
77627804
resolved "https://registry.yarnpkg.com/require-main-filename/-/require-main-filename-2.0.0.tgz#d0b329ecc7cc0f61649f62215be69af54aa8989b"
77637805
integrity sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==
77647806

7807+
require-package-name@^2.0.1:
7808+
version "2.0.1"
7809+
resolved "https://registry.yarnpkg.com/require-package-name/-/require-package-name-2.0.1.tgz#c11e97276b65b8e2923f75dabf5fb2ef0c3841b9"
7810+
integrity sha512-uuoJ1hU/k6M0779t3VMVIYpb2VMJk05cehCaABFhXaibcbvfgR8wKiozLjVFSzJPmQMRqIcO0HMyTFqfV09V6Q==
7811+
77657812
resolve-cwd@^2.0.0:
77667813
version "2.0.0"
77677814
resolved "https://registry.yarnpkg.com/resolve-cwd/-/resolve-cwd-2.0.0.tgz#00a9f7387556e27038eae232caa372a6a59b665a"

0 commit comments

Comments
 (0)