mirror of
https://github.com/status-im/react-native.git
synced 2025-01-28 02:04:55 +00:00
fbsource
Reviewed By: samwgoldman Differential Revision: D4314897 fbshipit-source-id: fbe11da4c63bf34d010220d74177cb3ca4cbee6d
This commit is contained in:
parent
affd5ac681
commit
d926aecd77
@ -39,11 +39,11 @@ suppress_type=$FlowIssue
|
|||||||
suppress_type=$FlowFixMe
|
suppress_type=$FlowFixMe
|
||||||
suppress_type=$FixMe
|
suppress_type=$FixMe
|
||||||
|
|
||||||
suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(3[0-6]\\|[1-2][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)
|
suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(3[0-7]\\|[1-2][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)
|
||||||
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(3[0-6]\\|1[0-9]\\|[1-2][0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+
|
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(3[0-7]\\|1[0-9]\\|[1-2][0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+
|
||||||
suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
|
suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
|
||||||
|
|
||||||
unsafe.enable_getters_and_setters=true
|
unsafe.enable_getters_and_setters=true
|
||||||
|
|
||||||
[version]
|
[version]
|
||||||
^0.36.0
|
^0.37.0
|
||||||
|
@ -213,7 +213,7 @@ if (__DEV__) {
|
|||||||
// other files. Therefore, calls to `require('moduleId')` are not replaced
|
// other files. Therefore, calls to `require('moduleId')` are not replaced
|
||||||
// with numeric IDs
|
// with numeric IDs
|
||||||
// TODO(davidaurelio) Scan polyfills for dependencies, too (t9759686)
|
// TODO(davidaurelio) Scan polyfills for dependencies, too (t9759686)
|
||||||
require.Systrace = Systrace;
|
(require: any).Systrace = Systrace;
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = Systrace;
|
module.exports = Systrace;
|
||||||
|
@ -71,7 +71,6 @@ function saveAsIndexedFile(
|
|||||||
|
|
||||||
const fileHeader = new Buffer(4);
|
const fileHeader = new Buffer(4);
|
||||||
fileHeader.writeUInt32LE(MAGIC_UNBUNDLE_FILE_HEADER, 0);
|
fileHeader.writeUInt32LE(MAGIC_UNBUNDLE_FILE_HEADER, 0);
|
||||||
//$FlowIssue #14640206
|
|
||||||
const nullByteBuffer: Buffer = new Buffer(1).fill(0);
|
const nullByteBuffer: Buffer = new Buffer(1).fill(0);
|
||||||
|
|
||||||
function writeBuffers(stream, buffers: Array<Buffer>) {
|
function writeBuffers(stream, buffers: Array<Buffer>) {
|
||||||
@ -113,7 +112,6 @@ function buildModuleTable(startupCode, buffers, moduleGroups) {
|
|||||||
const moduleIds = Array.from(moduleGroups.modulesById.keys());
|
const moduleIds = Array.from(moduleGroups.modulesById.keys());
|
||||||
const maxId = moduleIds.reduce((max, id) => Math.max(max, id));
|
const maxId = moduleIds.reduce((max, id) => Math.max(max, id));
|
||||||
const numEntries = maxId + 1;
|
const numEntries = maxId + 1;
|
||||||
//$FlowIssue #14640206
|
|
||||||
const table: Buffer = new Buffer(entryOffset(numEntries)).fill(0);
|
const table: Buffer = new Buffer(entryOffset(numEntries)).fill(0);
|
||||||
|
|
||||||
// num_entries
|
// num_entries
|
||||||
|
@ -199,7 +199,7 @@
|
|||||||
"eslint-plugin-babel": "^3.3.0",
|
"eslint-plugin-babel": "^3.3.0",
|
||||||
"eslint-plugin-flowtype": "^2.20.0",
|
"eslint-plugin-flowtype": "^2.20.0",
|
||||||
"eslint-plugin-react": "^6.4.1",
|
"eslint-plugin-react": "^6.4.1",
|
||||||
"flow-bin": "^0.36.0",
|
"flow-bin": "^0.37.0",
|
||||||
"jest": "17.0.3",
|
"jest": "17.0.3",
|
||||||
"jest-repl": "17.0.3",
|
"jest-repl": "17.0.3",
|
||||||
"jest-runtime": "17.0.3",
|
"jest-runtime": "17.0.3",
|
||||||
|
4
packager/react-packager/src/Server/index.js
vendored
4
packager/react-packager/src/Server/index.js
vendored
@ -264,7 +264,9 @@ class Server {
|
|||||||
this._bundles[key].then(bundle => {
|
this._bundles[key].then(bundle => {
|
||||||
const deps = bundleDeps.get(bundle);
|
const deps = bundleDeps.get(bundle);
|
||||||
filePaths.forEach(filePath => {
|
filePaths.forEach(filePath => {
|
||||||
|
// $FlowFixMe(>=0.37.0)
|
||||||
if (deps.files.has(filePath)) {
|
if (deps.files.has(filePath)) {
|
||||||
|
// $FlowFixMe(>=0.37.0)
|
||||||
deps.outdated.add(filePath);
|
deps.outdated.add(filePath);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@ -557,6 +559,7 @@ class Server {
|
|||||||
if (optionsJson in this._bundles) {
|
if (optionsJson in this._bundles) {
|
||||||
return this._bundles[optionsJson].then(bundle => {
|
return this._bundles[optionsJson].then(bundle => {
|
||||||
const deps = bundleDeps.get(bundle);
|
const deps = bundleDeps.get(bundle);
|
||||||
|
// $FlowFixMe(>=0.37.0)
|
||||||
const {dependencyPairs, files, idToIndex, outdated} = deps;
|
const {dependencyPairs, files, idToIndex, outdated} = deps;
|
||||||
if (outdated.size) {
|
if (outdated.size) {
|
||||||
|
|
||||||
@ -570,6 +573,7 @@ class Server {
|
|||||||
|
|
||||||
const changedModules =
|
const changedModules =
|
||||||
Array.from(outdated, this.getModuleForPath, this);
|
Array.from(outdated, this.getModuleForPath, this);
|
||||||
|
// $FlowFixMe(>=0.37.0)
|
||||||
deps.outdated = new Set();
|
deps.outdated = new Set();
|
||||||
|
|
||||||
const opts = bundleOpts(options);
|
const opts = bundleOpts(options);
|
||||||
|
@ -114,6 +114,7 @@ class ModuleCache {
|
|||||||
getPackageForModule(module: Module): ?Package {
|
getPackageForModule(module: Module): ?Package {
|
||||||
if (this._packageModuleMap.has(module)) {
|
if (this._packageModuleMap.has(module)) {
|
||||||
const packagePath = this._packageModuleMap.get(module);
|
const packagePath = this._packageModuleMap.get(module);
|
||||||
|
// $FlowFixMe(>=0.37.0)
|
||||||
if (this._packageCache[packagePath]) {
|
if (this._packageCache[packagePath]) {
|
||||||
return this._packageCache[packagePath];
|
return this._packageCache[packagePath];
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user