metro 0.86.0 → 0.87.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +14 -14
- package/src/node-haste/DependencyGraph/ModuleResolution.js +2 -0
- package/src/node-haste/DependencyGraph/ModuleResolution.js.flow +3 -0
- package/src/DeltaBundler/__fixtures__/hasteImpl.js +0 -17
- package/src/integration_tests/basic_bundle/AssetRegistry.js +0 -7
- package/src/integration_tests/basic_bundle/AssetRegistry.js.flow +0 -17
- package/src/integration_tests/basic_bundle/Bar.js +0 -7
- package/src/integration_tests/basic_bundle/Bar.js.flow +0 -15
- package/src/integration_tests/basic_bundle/ErrorBundle.js +0 -8
- package/src/integration_tests/basic_bundle/ErrorBundle.js.flow +0 -23
- package/src/integration_tests/basic_bundle/Foo.js +0 -7
- package/src/integration_tests/basic_bundle/Foo.js.flow +0 -15
- package/src/integration_tests/basic_bundle/TestBigInt.js +0 -5
- package/src/integration_tests/basic_bundle/TestBigInt.js.flow +0 -17
- package/src/integration_tests/basic_bundle/TestBundle.js +0 -13
- package/src/integration_tests/basic_bundle/TestBundle.js.flow +0 -21
- package/src/integration_tests/basic_bundle/TestPolyfill.js +0 -3
- package/src/integration_tests/basic_bundle/TestPolyfill.js.flow +0 -13
- package/src/integration_tests/basic_bundle/TypeScript.ts +0 -16
- package/src/integration_tests/basic_bundle/build-errors/cannot-resolve-import.js +0 -7
- package/src/integration_tests/basic_bundle/build-errors/cannot-resolve-import.js.flow +0 -17
- package/src/integration_tests/basic_bundle/build-errors/cannot-resolve-multi-line-import-with-escapes.js +0 -4
- package/src/integration_tests/basic_bundle/build-errors/cannot-resolve-multi-line-import-with-escapes.js.flow +0 -29
- package/src/integration_tests/basic_bundle/build-errors/cannot-resolve-multi-line-import.js +0 -4
- package/src/integration_tests/basic_bundle/build-errors/cannot-resolve-multi-line-import.js.flow +0 -29
- package/src/integration_tests/basic_bundle/build-errors/cannot-resolve-require-with-embedded-comment.js +0 -4
- package/src/integration_tests/basic_bundle/build-errors/cannot-resolve-require-with-embedded-comment.js.flow +0 -17
- package/src/integration_tests/basic_bundle/build-errors/cannot-resolve-require.js +0 -4
- package/src/integration_tests/basic_bundle/build-errors/cannot-resolve-require.js.flow +0 -17
- package/src/integration_tests/basic_bundle/build-errors/cannot-resolve-specifier-with-escapes.js +0 -4
- package/src/integration_tests/basic_bundle/build-errors/cannot-resolve-specifier-with-escapes.js.flow +0 -19
- package/src/integration_tests/basic_bundle/build-errors/inline-requires-cannot-resolve-import.js +0 -7
- package/src/integration_tests/basic_bundle/build-errors/inline-requires-cannot-resolve-import.js.flow +0 -17
- package/src/integration_tests/basic_bundle/build-errors/inline-requires-cannot-resolve-require.js +0 -4
- package/src/integration_tests/basic_bundle/build-errors/inline-requires-cannot-resolve-require.js.flow +0 -17
- package/src/integration_tests/basic_bundle/excluded_from_file_map.js +0 -7
- package/src/integration_tests/basic_bundle/excluded_from_file_map.js.flow +0 -11
- package/src/integration_tests/basic_bundle/import-export/export-1.js +0 -12
- package/src/integration_tests/basic_bundle/import-export/export-1.js.flow +0 -19
- package/src/integration_tests/basic_bundle/import-export/export-2.js +0 -12
- package/src/integration_tests/basic_bundle/import-export/export-2.js.flow +0 -19
- package/src/integration_tests/basic_bundle/import-export/export-3.js +0 -12
- package/src/integration_tests/basic_bundle/import-export/export-3.js.flow +0 -19
- package/src/integration_tests/basic_bundle/import-export/export-4.js +0 -12
- package/src/integration_tests/basic_bundle/import-export/export-4.js.flow +0 -19
- package/src/integration_tests/basic_bundle/import-export/export-5.js +0 -5
- package/src/integration_tests/basic_bundle/import-export/export-5.js.flow +0 -15
- package/src/integration_tests/basic_bundle/import-export/export-6.js +0 -8
- package/src/integration_tests/basic_bundle/import-export/export-6.js.flow +0 -15
- package/src/integration_tests/basic_bundle/import-export/export-7.js +0 -5
- package/src/integration_tests/basic_bundle/import-export/export-7.js.flow +0 -15
- package/src/integration_tests/basic_bundle/import-export/export-8.js +0 -8
- package/src/integration_tests/basic_bundle/import-export/export-8.js.flow +0 -15
- package/src/integration_tests/basic_bundle/import-export/export-null.js +0 -8
- package/src/integration_tests/basic_bundle/import-export/export-null.js.flow +0 -15
- package/src/integration_tests/basic_bundle/import-export/export-primitive-default.js +0 -8
- package/src/integration_tests/basic_bundle/import-export/export-primitive-default.js.flow +0 -15
- package/src/integration_tests/basic_bundle/import-export/index.js +0 -76
- package/src/integration_tests/basic_bundle/import-export/index.js.flow +0 -43
- package/src/integration_tests/basic_bundle/import-export/utils.js +0 -1
- package/src/integration_tests/basic_bundle/import-export/utils.js.flow +0 -14
- package/src/integration_tests/basic_bundle/loadBundleAsyncForTest.js +0 -6
- package/src/integration_tests/basic_bundle/loadBundleAsyncForTest.js.flow +0 -20
- package/src/integration_tests/basic_bundle/not_a_source_file.xyz +0 -1
- package/src/integration_tests/basic_bundle/optional-dependencies/index.js +0 -20
- package/src/integration_tests/basic_bundle/optional-dependencies/index.js.flow +0 -34
- package/src/integration_tests/basic_bundle/optional-dependencies/optional-b.js +0 -3
- package/src/integration_tests/basic_bundle/optional-dependencies/optional-b.js.flow +0 -11
- package/src/integration_tests/basic_bundle/optional-dependencies/optional-c.js +0 -3
- package/src/integration_tests/basic_bundle/optional-dependencies/optional-c.js.flow +0 -11
- package/src/integration_tests/basic_bundle/optional-dependencies/required-a.js +0 -3
- package/src/integration_tests/basic_bundle/optional-dependencies/required-a.js.flow +0 -11
- package/src/integration_tests/basic_bundle/polyfill.js +0 -3
- package/src/integration_tests/basic_bundle/require-context/conflict.js +0 -12
- package/src/integration_tests/basic_bundle/require-context/conflict.js.flow +0 -27
- package/src/integration_tests/basic_bundle/require-context/empty.js +0 -17
- package/src/integration_tests/basic_bundle/require-context/empty.js.flow +0 -26
- package/src/integration_tests/basic_bundle/require-context/matching.js +0 -13
- package/src/integration_tests/basic_bundle/require-context/matching.js.flow +0 -27
- package/src/integration_tests/basic_bundle/require-context/mode-eager.js +0 -11
- package/src/integration_tests/basic_bundle/require-context/mode-eager.js.flow +0 -25
- package/src/integration_tests/basic_bundle/require-context/mode-lazy-once.js +0 -11
- package/src/integration_tests/basic_bundle/require-context/mode-lazy-once.js.flow +0 -25
- package/src/integration_tests/basic_bundle/require-context/mode-lazy.js +0 -11
- package/src/integration_tests/basic_bundle/require-context/mode-lazy.js.flow +0 -25
- package/src/integration_tests/basic_bundle/require-context/mode-sync.js +0 -9
- package/src/integration_tests/basic_bundle/require-context/mode-sync.js.flow +0 -24
- package/src/integration_tests/basic_bundle/require-context/subdir/a.js +0 -3
- package/src/integration_tests/basic_bundle/require-context/subdir/a.js.flow +0 -11
- package/src/integration_tests/basic_bundle/require-context/subdir/b.js +0 -7
- package/src/integration_tests/basic_bundle/require-context/subdir/b.js.flow +0 -11
- package/src/integration_tests/basic_bundle/require-context/subdir/c.js +0 -3
- package/src/integration_tests/basic_bundle/require-context/subdir/c.js.flow +0 -11
- package/src/integration_tests/basic_bundle/require-context/subdir/nested/d.js +0 -3
- package/src/integration_tests/basic_bundle/require-context/subdir/nested/d.js.flow +0 -11
- package/src/integration_tests/basic_bundle/require-context/subdir-conflict/index.js +0 -3
- package/src/integration_tests/basic_bundle/require-context/subdir-conflict/index.js.flow +0 -11
- package/src/integration_tests/basic_bundle/require-context/utils.js +0 -18
- package/src/integration_tests/basic_bundle/require-context/utils.js.flow +0 -44
- package/src/integration_tests/basic_bundle/require-resolveWeak/import-and-resolveWeak.js +0 -13
- package/src/integration_tests/basic_bundle/require-resolveWeak/import-and-resolveWeak.js.flow +0 -33
- package/src/integration_tests/basic_bundle/require-resolveWeak/multiple.js +0 -10
- package/src/integration_tests/basic_bundle/require-resolveWeak/multiple.js.flow +0 -23
- package/src/integration_tests/basic_bundle/require-resolveWeak/never-required.js +0 -8
- package/src/integration_tests/basic_bundle/require-resolveWeak/never-required.js.flow +0 -21
- package/src/integration_tests/basic_bundle/require-resolveWeak/require-and-resolveWeak.js +0 -13
- package/src/integration_tests/basic_bundle/require-resolveWeak/require-and-resolveWeak.js.flow +0 -33
- package/src/integration_tests/basic_bundle/require-resolveWeak/subdir/counter-module.js +0 -9
- package/src/integration_tests/basic_bundle/require-resolveWeak/subdir/counter-module.js.flow +0 -18
- package/src/integration_tests/basic_bundle/require-resolveWeak/subdir/throwing-module.js +0 -3
- package/src/integration_tests/basic_bundle/require-resolveWeak/subdir/throwing-module.js.flow +0 -11
- package/src/integration_tests/basic_bundle/require-resolveWeak/utils.js +0 -1
- package/src/integration_tests/basic_bundle/require-resolveWeak/utils.js.flow +0 -14
- package/src/integration_tests/basic_bundle/test.png +0 -0
- package/src/integration_tests/execBundle.js +0 -12
- package/src/integration_tests/execBundle.js.flow +0 -19
- package/src/integration_tests/metro.config.js +0 -46
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "metro",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.87.0",
|
|
4
4
|
"description": "🚇 The JavaScript bundler for React Native.",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"bin": "src/cli.js",
|
|
@@ -39,18 +39,18 @@
|
|
|
39
39
|
"jest-worker": "^29.7.0",
|
|
40
40
|
"jsc-safe-url": "^0.2.2",
|
|
41
41
|
"lodash.throttle": "^4.1.1",
|
|
42
|
-
"metro-babel-transformer": "0.
|
|
43
|
-
"metro-cache": "0.
|
|
44
|
-
"metro-cache-key": "0.
|
|
45
|
-
"metro-config": "0.
|
|
46
|
-
"metro-core": "0.
|
|
47
|
-
"metro-file-map": "0.
|
|
48
|
-
"metro-resolver": "0.
|
|
49
|
-
"metro-runtime": "0.
|
|
50
|
-
"metro-source-map": "0.
|
|
51
|
-
"metro-symbolicate": "0.
|
|
52
|
-
"metro-transform-plugins": "0.
|
|
53
|
-
"metro-transform-worker": "0.
|
|
42
|
+
"metro-babel-transformer": "0.87.0",
|
|
43
|
+
"metro-cache": "0.87.0",
|
|
44
|
+
"metro-cache-key": "0.87.0",
|
|
45
|
+
"metro-config": "0.87.0",
|
|
46
|
+
"metro-core": "0.87.0",
|
|
47
|
+
"metro-file-map": "0.87.0",
|
|
48
|
+
"metro-resolver": "0.87.0",
|
|
49
|
+
"metro-runtime": "0.87.0",
|
|
50
|
+
"metro-source-map": "0.87.0",
|
|
51
|
+
"metro-symbolicate": "0.87.0",
|
|
52
|
+
"metro-transform-plugins": "0.87.0",
|
|
53
|
+
"metro-transform-worker": "0.87.0",
|
|
54
54
|
"mime-types": "^3.0.1",
|
|
55
55
|
"nullthrows": "^1.1.1",
|
|
56
56
|
"serialize-error": "^2.1.0",
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"dedent": "^0.7.0",
|
|
72
72
|
"jest-snapshot": "^29.7.0",
|
|
73
73
|
"jest-snapshot-serializer-raw": "^1.2.0",
|
|
74
|
-
"metro-babel-register": "0.
|
|
74
|
+
"metro-babel-register": "0.87.0",
|
|
75
75
|
"metro-memory-fs": "*",
|
|
76
76
|
"mock-req": "^0.2.0",
|
|
77
77
|
"mock-res": "^0.6.0",
|
|
@@ -236,6 +236,9 @@ export class ModuleResolver {
|
|
|
236
236
|
return {filePath: arbitrary, type: 'sourceFile'};
|
|
237
237
|
case 'empty':
|
|
238
238
|
return this._getEmptyModule();
|
|
239
|
+
case 'virtualModule':
|
|
240
|
+
// Reserved for future implementation.
|
|
241
|
+
throw new Error('Virtual modules are not yet implemented.');
|
|
239
242
|
default:
|
|
240
243
|
resolution.type as empty;
|
|
241
244
|
throw new Error('invalid type');
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
const fs = require("fs");
|
|
4
|
-
module.exports = {
|
|
5
|
-
getHasteName(filename) {
|
|
6
|
-
const matches = fs
|
|
7
|
-
.readFileSync(filename, "utf8")
|
|
8
|
-
.match(/@providesModule ([^\n]+)/);
|
|
9
|
-
if (!matches) {
|
|
10
|
-
return undefined;
|
|
11
|
-
}
|
|
12
|
-
return matches[1];
|
|
13
|
-
},
|
|
14
|
-
getCacheKey() {
|
|
15
|
-
return "hasteImplFixture";
|
|
16
|
-
},
|
|
17
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the MIT license found in the
|
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
|
6
|
-
*
|
|
7
|
-
* @format
|
|
8
|
-
* @flow strict
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
'use strict';
|
|
12
|
-
|
|
13
|
-
module.exports = {
|
|
14
|
-
registerAsset(data: unknown): unknown {
|
|
15
|
-
return data;
|
|
16
|
-
},
|
|
17
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the MIT license found in the
|
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
|
6
|
-
*
|
|
7
|
-
* @format
|
|
8
|
-
* @flow strict
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
'use strict';
|
|
12
|
-
|
|
13
|
-
const Foo = require('./Foo');
|
|
14
|
-
|
|
15
|
-
module.exports = {type: 'bar', foo: Foo.type};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the MIT license found in the
|
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
|
6
|
-
*
|
|
7
|
-
* @format
|
|
8
|
-
* @flow strict
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
'use strict';
|
|
12
|
-
|
|
13
|
-
// Add a random require to fill the bundle with some sourcecode.
|
|
14
|
-
require('./AssetRegistry');
|
|
15
|
-
|
|
16
|
-
const calcSum = (value: string) => {
|
|
17
|
-
// some random function
|
|
18
|
-
const error = new Error('SOURCEMAP: value: ' + value);
|
|
19
|
-
|
|
20
|
-
return error;
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
module.exports = calcSum('anything') as Error;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the MIT license found in the
|
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
|
6
|
-
*
|
|
7
|
-
* @format
|
|
8
|
-
* @flow strict
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
'use strict';
|
|
12
|
-
|
|
13
|
-
const asset = require('./test.png');
|
|
14
|
-
|
|
15
|
-
module.exports = {type: 'foo', asset};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the MIT license found in the
|
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
|
6
|
-
*
|
|
7
|
-
* @format
|
|
8
|
-
* @flow strict-local
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
'use strict';
|
|
12
|
-
|
|
13
|
-
// $FlowFixMe[signature-verification-failure]
|
|
14
|
-
var a = 2n;
|
|
15
|
-
// $FlowFixMe[signature-verification-failure]
|
|
16
|
-
var b = 3n;
|
|
17
|
-
module.exports = a ** b;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the MIT license found in the
|
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
|
6
|
-
*
|
|
7
|
-
* @format
|
|
8
|
-
* @flow strict
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
'use strict';
|
|
12
|
-
|
|
13
|
-
const Bar = require('./Bar');
|
|
14
|
-
const Foo = require('./Foo');
|
|
15
|
-
// $FlowFixMe[untyped-import]: Flow doesn't understand TypeScript
|
|
16
|
-
// $FlowFixMe[cannot-resolve-module]: Flow doesn't understand TypeScript
|
|
17
|
-
const TypeScript = require('./TypeScript');
|
|
18
|
-
|
|
19
|
-
Object.keys({...Bar});
|
|
20
|
-
|
|
21
|
-
module.exports = {Foo, Bar, TypeScript};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the MIT license found in the
|
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
|
6
|
-
*
|
|
7
|
-
* @format
|
|
8
|
-
* @flow strict
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
'use strict';
|
|
12
|
-
|
|
13
|
-
module.exports = global.POLYFILL_IS_INJECTED;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the MIT license found in the
|
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
export const type = 'TypeScript' as string
|
|
9
|
-
export const test = true as boolean
|
|
10
|
-
|
|
11
|
-
// Exporting default interface was broken before Babel 7.0.0-beta.56
|
|
12
|
-
export default interface A {}
|
|
13
|
-
|
|
14
|
-
export class B {
|
|
15
|
-
constructor(public name: string){}
|
|
16
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the MIT license found in the
|
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
|
6
|
-
*
|
|
7
|
-
* @flow strict-local
|
|
8
|
-
* @format
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
// $FlowExpectedError[cannot-resolve-module]
|
|
12
|
-
import type DoesNotExistT from './does-not-exist';
|
|
13
|
-
|
|
14
|
-
// $FlowExpectedError[cannot-resolve-module]
|
|
15
|
-
import DoesNotExist from './does-not-exist';
|
|
16
|
-
|
|
17
|
-
global.x = DoesNotExist as DoesNotExistT;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the MIT license found in the
|
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
|
6
|
-
*
|
|
7
|
-
* @flow strict-local
|
|
8
|
-
* @format
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
/* eslint-disable no-unused-vars */
|
|
12
|
-
|
|
13
|
-
// $FlowExpectedError[cannot-resolve-module]
|
|
14
|
-
import type DoesNotExistT from './does-not\'"-exist';
|
|
15
|
-
|
|
16
|
-
import {
|
|
17
|
-
aaaaaaaaaa,
|
|
18
|
-
bbbbbbbbbb,
|
|
19
|
-
cccccccccc,
|
|
20
|
-
dddddddddd,
|
|
21
|
-
eeeeeeeeee,
|
|
22
|
-
ffffffffff,
|
|
23
|
-
gggggggggg,
|
|
24
|
-
hhhhhhhhhh,
|
|
25
|
-
iiiiiiiiii,
|
|
26
|
-
// $FlowExpectedError[cannot-resolve-module]
|
|
27
|
-
} from './does-not\'"-exist';
|
|
28
|
-
|
|
29
|
-
global.x = aaaaaaaaaa as DoesNotExistT;
|
package/src/integration_tests/basic_bundle/build-errors/cannot-resolve-multi-line-import.js.flow
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the MIT license found in the
|
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
|
6
|
-
*
|
|
7
|
-
* @flow strict-local
|
|
8
|
-
* @format
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
/* eslint-disable no-unused-vars */
|
|
12
|
-
|
|
13
|
-
// $FlowExpectedError[cannot-resolve-module]
|
|
14
|
-
import type DoesNotExistT from './does-not-exist';
|
|
15
|
-
|
|
16
|
-
import {
|
|
17
|
-
aaaaaaaaaa,
|
|
18
|
-
bbbbbbbbbb,
|
|
19
|
-
cccccccccc,
|
|
20
|
-
dddddddddd,
|
|
21
|
-
eeeeeeeeee,
|
|
22
|
-
ffffffffff,
|
|
23
|
-
gggggggggg,
|
|
24
|
-
hhhhhhhhhh,
|
|
25
|
-
iiiiiiiiii,
|
|
26
|
-
// $FlowExpectedError[cannot-resolve-module]
|
|
27
|
-
} from './does-not-exist';
|
|
28
|
-
|
|
29
|
-
global.x = aaaaaaaaaa as DoesNotExistT;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the MIT license found in the
|
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
|
6
|
-
*
|
|
7
|
-
* @flow strict-local
|
|
8
|
-
* @format
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
// $FlowExpectedError[cannot-resolve-module]
|
|
12
|
-
import type DoesNotExistT from './foo';
|
|
13
|
-
|
|
14
|
-
// $FlowExpectedError[cannot-resolve-module]
|
|
15
|
-
const DoesNotExist = require('./foo' /* ./foo */);
|
|
16
|
-
|
|
17
|
-
global.x = DoesNotExist as DoesNotExistT;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the MIT license found in the
|
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
|
6
|
-
*
|
|
7
|
-
* @flow strict-local
|
|
8
|
-
* @format
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
// $FlowExpectedError[cannot-resolve-module]
|
|
12
|
-
import type DoesNotExistT from './does-not-exist';
|
|
13
|
-
|
|
14
|
-
// $FlowExpectedError[cannot-resolve-module]
|
|
15
|
-
const DoesNotExist = require('./does-not-exist');
|
|
16
|
-
|
|
17
|
-
global.x = DoesNotExist as DoesNotExistT;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the MIT license found in the
|
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
|
6
|
-
*
|
|
7
|
-
* @flow strict-local
|
|
8
|
-
* @format
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
/* eslint-disable no-unused-vars */
|
|
12
|
-
|
|
13
|
-
// $FlowExpectedError[cannot-resolve-module]
|
|
14
|
-
import type DoesNotExistT from './does-not\'"-exist';
|
|
15
|
-
|
|
16
|
-
// $FlowExpectedError[cannot-resolve-module]
|
|
17
|
-
import {DoesNotExist} from './does-not\'"-exist';
|
|
18
|
-
|
|
19
|
-
global.x = DoesNotExist as DoesNotExistT;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the MIT license found in the
|
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
|
6
|
-
*
|
|
7
|
-
* @flow strict-local
|
|
8
|
-
* @format
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
// $FlowExpectedError[cannot-resolve-module]
|
|
12
|
-
import type DoesNotExistT from './does-not-exist';
|
|
13
|
-
|
|
14
|
-
// $FlowExpectedError[cannot-resolve-module]
|
|
15
|
-
import DoesNotExist from './does-not-exist';
|
|
16
|
-
|
|
17
|
-
global.x = DoesNotExist as DoesNotExistT;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the MIT license found in the
|
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
|
6
|
-
*
|
|
7
|
-
* @flow strict-local
|
|
8
|
-
* @format
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
// $FlowExpectedError[cannot-resolve-module]
|
|
12
|
-
import type DoesNotExistT from './does-not-exist';
|
|
13
|
-
|
|
14
|
-
// $FlowExpectedError[cannot-resolve-module]
|
|
15
|
-
const DoesNotExist = require('./does-not-exist');
|
|
16
|
-
|
|
17
|
-
global.x = DoesNotExist as DoesNotExistT;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the MIT license found in the
|
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
|
6
|
-
*
|
|
7
|
-
* @flow strict-local
|
|
8
|
-
* @format
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
export default '/* secret */';
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true,
|
|
5
|
-
});
|
|
6
|
-
exports.foo = exports.default = void 0;
|
|
7
|
-
exports.myFunction = myFunction;
|
|
8
|
-
var _default = (exports.default = "export-1: DEFAULT");
|
|
9
|
-
const foo = (exports.foo = "export-1: FOO");
|
|
10
|
-
function myFunction() {
|
|
11
|
-
return "export-1: MY_FUNCTION";
|
|
12
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the MIT license found in the
|
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
|
6
|
-
*
|
|
7
|
-
* @format
|
|
8
|
-
* @flow strict
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
'use strict';
|
|
12
|
-
|
|
13
|
-
export default 'export-1: DEFAULT';
|
|
14
|
-
|
|
15
|
-
export const foo = 'export-1: FOO';
|
|
16
|
-
|
|
17
|
-
export function myFunction(): string {
|
|
18
|
-
return 'export-1: MY_FUNCTION';
|
|
19
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true,
|
|
5
|
-
});
|
|
6
|
-
exports.foo = exports.default = void 0;
|
|
7
|
-
exports.myFunction = myFunction;
|
|
8
|
-
var _default = (exports.default = "export-2: DEFAULT");
|
|
9
|
-
const foo = (exports.foo = "export-2: FOO");
|
|
10
|
-
function myFunction() {
|
|
11
|
-
return "export-2: MY_FUNCTION";
|
|
12
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the MIT license found in the
|
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
|
6
|
-
*
|
|
7
|
-
* @format
|
|
8
|
-
* @flow strict
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
'use strict';
|
|
12
|
-
|
|
13
|
-
export default 'export-2: DEFAULT';
|
|
14
|
-
|
|
15
|
-
export const foo = 'export-2: FOO';
|
|
16
|
-
|
|
17
|
-
export function myFunction(): string {
|
|
18
|
-
return 'export-2: MY_FUNCTION';
|
|
19
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true,
|
|
5
|
-
});
|
|
6
|
-
exports.foo = exports.default = void 0;
|
|
7
|
-
exports.myFunction = myFunction;
|
|
8
|
-
var _default = (exports.default = "export-3: DEFAULT");
|
|
9
|
-
const foo = (exports.foo = "export-3: FOO");
|
|
10
|
-
function myFunction() {
|
|
11
|
-
return "export-3: MY_FUNCTION";
|
|
12
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the MIT license found in the
|
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
|
6
|
-
*
|
|
7
|
-
* @format
|
|
8
|
-
* @flow strict
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
'use strict';
|
|
12
|
-
|
|
13
|
-
export default 'export-3: DEFAULT';
|
|
14
|
-
|
|
15
|
-
export const foo = 'export-3: FOO';
|
|
16
|
-
|
|
17
|
-
export function myFunction(): string {
|
|
18
|
-
return 'export-3: MY_FUNCTION';
|
|
19
|
-
}
|