Skip to content

Commit 4734d4e

Browse files
author
Jack Zhao
authored
Merge branch 'master' into master
2 parents c5087e6 + 4a4d2ef commit 4734d4e

File tree

3 files changed

+10
-32
lines changed

3 files changed

+10
-32
lines changed

packages/create-react-app/yarn.lock.cached

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1924,16 +1924,6 @@ bcrypt-pbkdf@^1.0.0:
19241924
dependencies:
19251925
tweetnacl "^0.14.3"
19261926

1927-
1928-
version "6.1.1"
1929-
resolved "https://registry.yarnpkg.com/bfj/-/bfj-6.1.1.tgz#05a3b7784fbd72cfa3c22e56002ef99336516c48"
1930-
integrity sha512-+GUNvzHR4nRyGybQc2WpNJL4MJazMuvf92ueIyA0bIkPRwhhQu3IfZQ2PSoVPpCBJfmoSdOxu5rnotfFLlvYRQ==
1931-
dependencies:
1932-
bluebird "^3.5.1"
1933-
check-types "^7.3.0"
1934-
hoopy "^0.1.2"
1935-
tryer "^1.0.0"
1936-
19371927
big.js@^5.2.2:
19381928
version "5.2.2"
19391929
resolved "https://registry.yarnpkg.com/big.js/-/big.js-5.2.2.tgz#65f0af382f578bcdc742bd9c281e9cb2d7768328"
@@ -1944,7 +1934,7 @@ binary-extensions@^1.0.0:
19441934
resolved "https://registry.yarnpkg.com/binary-extensions/-/binary-extensions-1.13.0.tgz#9523e001306a32444b907423f1de2164222f6ab1"
19451935
integrity sha512-EgmjVLMn22z7eGGv3kcnHwSnJXmFHjISTY9E/S5lIcTD3Oxw05QTcBLNkJFzcb3cNueUdF/IN4U+d78V0zO8Hw==
19461936

1947-
bluebird@^3.5.1, bluebird@^3.5.3:
1937+
bluebird@^3.5.3:
19481938
version "3.5.3"
19491939
resolved "https://registry.yarnpkg.com/bluebird/-/bluebird-3.5.3.tgz#7d01c6f9616c9a51ab0f8c549a79dfe6ec33efa7"
19501940
integrity sha512-/qKPUQlaW1OyR51WeCPBvRnAlnZFUJkCSG5HzGnuIqhgyJtF+T94lFnn33eiazjRm2LAHVy2guNnaq48X9SJuw==
@@ -3978,6 +3968,7 @@ [email protected]:
39783968
semver "^5.6.0"
39793969
tapable "^1.0.0"
39803970

3971+
39813972
form-data@~2.3.2:
39823973
version "2.3.3"
39833974
resolved "https://registry.yarnpkg.com/form-data/-/form-data-2.3.3.tgz#dcce52c05f644f298c6a7ab936bd724ceffbf3a6"
@@ -5768,6 +5759,11 @@ lodash.get@^4.4.2:
57685759
resolved "https://registry.yarnpkg.com/lodash.get/-/lodash.get-4.4.2.tgz#2d177f652fa31e939b4438d5341499dfa3825e99"
57695760
integrity sha1-LRd/ZS+jHpObRDjVNBSZ36OCXpk=
57705761

5762+
lodash.get@^4.4.2:
5763+
version "4.4.2"
5764+
resolved "https://registry.yarnpkg.com/lodash.get/-/lodash.get-4.4.2.tgz#2d177f652fa31e939b4438d5341499dfa3825e99"
5765+
integrity sha1-LRd/ZS+jHpObRDjVNBSZ36OCXpk=
5766+
57715767
lodash.memoize@^4.1.2:
57725768
version "4.1.2"
57735769
resolved "https://registry.yarnpkg.com/lodash.memoize/-/lodash.memoize-4.1.2.tgz#bcc6c49a42a2840ed997f323eada5ecd182e0bfe"
@@ -8993,11 +8989,6 @@ trough@^1.0.0:
89938989
resolved "https://registry.yarnpkg.com/trough/-/trough-1.0.3.tgz#e29bd1614c6458d44869fc28b255ab7857ef7c24"
89948990
integrity sha512-fwkLWH+DimvA4YCy+/nvJd61nWQQ2liO/nF/RjkTpiOGi+zxZzVkhb1mvbHIIW4b/8nDsYI8uTmAlc0nNkRMOw==
89958991

8996-
tryer@^1.0.0:
8997-
version "1.0.1"
8998-
resolved "https://registry.yarnpkg.com/tryer/-/tryer-1.0.1.tgz#f2c85406800b9b0f74c9f7465b81eaad241252f8"
8999-
integrity sha512-c3zayb8/kWWpycWYg87P71E1S1ZL6b6IJxfb5fvsUgsf0S2MVGaDhDXXjDMpdCpfWXqptc+4mXwmiy1ypXqRAA==
9000-
90018992
ts-pnp@^1.0.0:
90028993
version "1.0.1"
90038994
resolved "https://registry.yarnpkg.com/ts-pnp/-/ts-pnp-1.0.1.tgz#fde74a6371676a167abaeda1ffc0fdb423520098"
@@ -9772,3 +9763,4 @@ yargs@^12.0.2:
97729763
which-module "^2.0.0"
97739764
y18n "^3.2.1 || ^4.0.0"
97749765
yargs-parser "^11.1.1"
9766+

packages/react-scripts/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
"babel-loader": "8.0.5",
3535
"babel-plugin-named-asset-import": "^0.3.1",
3636
"babel-preset-react-app": "^7.0.2",
37-
"bfj": "6.1.1",
3837
"case-sensitive-paths-webpack-plugin": "2.2.0",
3938
"css-loader": "2.1.1",
4039
"dotenv": "6.2.0",

packages/react-scripts/scripts/build.js

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ const path = require('path');
3535
const chalk = require('react-dev-utils/chalk');
3636
const fs = require('fs-extra');
3737
const webpack = require('webpack');
38-
const bfj = require('bfj');
3938
const configFactory = require('../config/webpack.config');
4039
const paths = require('../config/paths');
4140
const checkRequiredFiles = require('react-dev-utils/checkRequiredFiles');
@@ -60,10 +59,6 @@ if (!checkRequiredFiles([paths.appHtml, paths.appIndexJs])) {
6059
process.exit(1);
6160
}
6261

63-
// Process CLI arguments
64-
const argv = process.argv.slice(2);
65-
const writeStatsJson = argv.indexOf('--stats') !== -1;
66-
6762
// Generate configuration
6863
const config = configFactory('production');
6964

@@ -183,19 +178,11 @@ function build(previousFileSizes) {
183178
return reject(new Error(messages.warnings.join('\n\n')));
184179
}
185180

186-
const resolveArgs = {
181+
return resolve({
187182
stats,
188183
previousFileSizes,
189184
warnings: messages.warnings,
190-
};
191-
if (writeStatsJson) {
192-
return bfj
193-
.write(paths.appBuild + '/bundle-stats.json', stats.toJson())
194-
.then(() => resolve(resolveArgs))
195-
.catch(error => reject(new Error(error)));
196-
}
197-
198-
return resolve(resolveArgs);
185+
});
199186
});
200187
});
201188
}

0 commit comments

Comments
 (0)