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.
Files changed (117) hide show
  1. package/package.json +14 -14
  2. package/src/node-haste/DependencyGraph/ModuleResolution.js +2 -0
  3. package/src/node-haste/DependencyGraph/ModuleResolution.js.flow +3 -0
  4. package/src/DeltaBundler/__fixtures__/hasteImpl.js +0 -17
  5. package/src/integration_tests/basic_bundle/AssetRegistry.js +0 -7
  6. package/src/integration_tests/basic_bundle/AssetRegistry.js.flow +0 -17
  7. package/src/integration_tests/basic_bundle/Bar.js +0 -7
  8. package/src/integration_tests/basic_bundle/Bar.js.flow +0 -15
  9. package/src/integration_tests/basic_bundle/ErrorBundle.js +0 -8
  10. package/src/integration_tests/basic_bundle/ErrorBundle.js.flow +0 -23
  11. package/src/integration_tests/basic_bundle/Foo.js +0 -7
  12. package/src/integration_tests/basic_bundle/Foo.js.flow +0 -15
  13. package/src/integration_tests/basic_bundle/TestBigInt.js +0 -5
  14. package/src/integration_tests/basic_bundle/TestBigInt.js.flow +0 -17
  15. package/src/integration_tests/basic_bundle/TestBundle.js +0 -13
  16. package/src/integration_tests/basic_bundle/TestBundle.js.flow +0 -21
  17. package/src/integration_tests/basic_bundle/TestPolyfill.js +0 -3
  18. package/src/integration_tests/basic_bundle/TestPolyfill.js.flow +0 -13
  19. package/src/integration_tests/basic_bundle/TypeScript.ts +0 -16
  20. package/src/integration_tests/basic_bundle/build-errors/cannot-resolve-import.js +0 -7
  21. package/src/integration_tests/basic_bundle/build-errors/cannot-resolve-import.js.flow +0 -17
  22. package/src/integration_tests/basic_bundle/build-errors/cannot-resolve-multi-line-import-with-escapes.js +0 -4
  23. package/src/integration_tests/basic_bundle/build-errors/cannot-resolve-multi-line-import-with-escapes.js.flow +0 -29
  24. package/src/integration_tests/basic_bundle/build-errors/cannot-resolve-multi-line-import.js +0 -4
  25. package/src/integration_tests/basic_bundle/build-errors/cannot-resolve-multi-line-import.js.flow +0 -29
  26. package/src/integration_tests/basic_bundle/build-errors/cannot-resolve-require-with-embedded-comment.js +0 -4
  27. package/src/integration_tests/basic_bundle/build-errors/cannot-resolve-require-with-embedded-comment.js.flow +0 -17
  28. package/src/integration_tests/basic_bundle/build-errors/cannot-resolve-require.js +0 -4
  29. package/src/integration_tests/basic_bundle/build-errors/cannot-resolve-require.js.flow +0 -17
  30. package/src/integration_tests/basic_bundle/build-errors/cannot-resolve-specifier-with-escapes.js +0 -4
  31. package/src/integration_tests/basic_bundle/build-errors/cannot-resolve-specifier-with-escapes.js.flow +0 -19
  32. package/src/integration_tests/basic_bundle/build-errors/inline-requires-cannot-resolve-import.js +0 -7
  33. package/src/integration_tests/basic_bundle/build-errors/inline-requires-cannot-resolve-import.js.flow +0 -17
  34. package/src/integration_tests/basic_bundle/build-errors/inline-requires-cannot-resolve-require.js +0 -4
  35. package/src/integration_tests/basic_bundle/build-errors/inline-requires-cannot-resolve-require.js.flow +0 -17
  36. package/src/integration_tests/basic_bundle/excluded_from_file_map.js +0 -7
  37. package/src/integration_tests/basic_bundle/excluded_from_file_map.js.flow +0 -11
  38. package/src/integration_tests/basic_bundle/import-export/export-1.js +0 -12
  39. package/src/integration_tests/basic_bundle/import-export/export-1.js.flow +0 -19
  40. package/src/integration_tests/basic_bundle/import-export/export-2.js +0 -12
  41. package/src/integration_tests/basic_bundle/import-export/export-2.js.flow +0 -19
  42. package/src/integration_tests/basic_bundle/import-export/export-3.js +0 -12
  43. package/src/integration_tests/basic_bundle/import-export/export-3.js.flow +0 -19
  44. package/src/integration_tests/basic_bundle/import-export/export-4.js +0 -12
  45. package/src/integration_tests/basic_bundle/import-export/export-4.js.flow +0 -19
  46. package/src/integration_tests/basic_bundle/import-export/export-5.js +0 -5
  47. package/src/integration_tests/basic_bundle/import-export/export-5.js.flow +0 -15
  48. package/src/integration_tests/basic_bundle/import-export/export-6.js +0 -8
  49. package/src/integration_tests/basic_bundle/import-export/export-6.js.flow +0 -15
  50. package/src/integration_tests/basic_bundle/import-export/export-7.js +0 -5
  51. package/src/integration_tests/basic_bundle/import-export/export-7.js.flow +0 -15
  52. package/src/integration_tests/basic_bundle/import-export/export-8.js +0 -8
  53. package/src/integration_tests/basic_bundle/import-export/export-8.js.flow +0 -15
  54. package/src/integration_tests/basic_bundle/import-export/export-null.js +0 -8
  55. package/src/integration_tests/basic_bundle/import-export/export-null.js.flow +0 -15
  56. package/src/integration_tests/basic_bundle/import-export/export-primitive-default.js +0 -8
  57. package/src/integration_tests/basic_bundle/import-export/export-primitive-default.js.flow +0 -15
  58. package/src/integration_tests/basic_bundle/import-export/index.js +0 -76
  59. package/src/integration_tests/basic_bundle/import-export/index.js.flow +0 -43
  60. package/src/integration_tests/basic_bundle/import-export/utils.js +0 -1
  61. package/src/integration_tests/basic_bundle/import-export/utils.js.flow +0 -14
  62. package/src/integration_tests/basic_bundle/loadBundleAsyncForTest.js +0 -6
  63. package/src/integration_tests/basic_bundle/loadBundleAsyncForTest.js.flow +0 -20
  64. package/src/integration_tests/basic_bundle/not_a_source_file.xyz +0 -1
  65. package/src/integration_tests/basic_bundle/optional-dependencies/index.js +0 -20
  66. package/src/integration_tests/basic_bundle/optional-dependencies/index.js.flow +0 -34
  67. package/src/integration_tests/basic_bundle/optional-dependencies/optional-b.js +0 -3
  68. package/src/integration_tests/basic_bundle/optional-dependencies/optional-b.js.flow +0 -11
  69. package/src/integration_tests/basic_bundle/optional-dependencies/optional-c.js +0 -3
  70. package/src/integration_tests/basic_bundle/optional-dependencies/optional-c.js.flow +0 -11
  71. package/src/integration_tests/basic_bundle/optional-dependencies/required-a.js +0 -3
  72. package/src/integration_tests/basic_bundle/optional-dependencies/required-a.js.flow +0 -11
  73. package/src/integration_tests/basic_bundle/polyfill.js +0 -3
  74. package/src/integration_tests/basic_bundle/require-context/conflict.js +0 -12
  75. package/src/integration_tests/basic_bundle/require-context/conflict.js.flow +0 -27
  76. package/src/integration_tests/basic_bundle/require-context/empty.js +0 -17
  77. package/src/integration_tests/basic_bundle/require-context/empty.js.flow +0 -26
  78. package/src/integration_tests/basic_bundle/require-context/matching.js +0 -13
  79. package/src/integration_tests/basic_bundle/require-context/matching.js.flow +0 -27
  80. package/src/integration_tests/basic_bundle/require-context/mode-eager.js +0 -11
  81. package/src/integration_tests/basic_bundle/require-context/mode-eager.js.flow +0 -25
  82. package/src/integration_tests/basic_bundle/require-context/mode-lazy-once.js +0 -11
  83. package/src/integration_tests/basic_bundle/require-context/mode-lazy-once.js.flow +0 -25
  84. package/src/integration_tests/basic_bundle/require-context/mode-lazy.js +0 -11
  85. package/src/integration_tests/basic_bundle/require-context/mode-lazy.js.flow +0 -25
  86. package/src/integration_tests/basic_bundle/require-context/mode-sync.js +0 -9
  87. package/src/integration_tests/basic_bundle/require-context/mode-sync.js.flow +0 -24
  88. package/src/integration_tests/basic_bundle/require-context/subdir/a.js +0 -3
  89. package/src/integration_tests/basic_bundle/require-context/subdir/a.js.flow +0 -11
  90. package/src/integration_tests/basic_bundle/require-context/subdir/b.js +0 -7
  91. package/src/integration_tests/basic_bundle/require-context/subdir/b.js.flow +0 -11
  92. package/src/integration_tests/basic_bundle/require-context/subdir/c.js +0 -3
  93. package/src/integration_tests/basic_bundle/require-context/subdir/c.js.flow +0 -11
  94. package/src/integration_tests/basic_bundle/require-context/subdir/nested/d.js +0 -3
  95. package/src/integration_tests/basic_bundle/require-context/subdir/nested/d.js.flow +0 -11
  96. package/src/integration_tests/basic_bundle/require-context/subdir-conflict/index.js +0 -3
  97. package/src/integration_tests/basic_bundle/require-context/subdir-conflict/index.js.flow +0 -11
  98. package/src/integration_tests/basic_bundle/require-context/utils.js +0 -18
  99. package/src/integration_tests/basic_bundle/require-context/utils.js.flow +0 -44
  100. package/src/integration_tests/basic_bundle/require-resolveWeak/import-and-resolveWeak.js +0 -13
  101. package/src/integration_tests/basic_bundle/require-resolveWeak/import-and-resolveWeak.js.flow +0 -33
  102. package/src/integration_tests/basic_bundle/require-resolveWeak/multiple.js +0 -10
  103. package/src/integration_tests/basic_bundle/require-resolveWeak/multiple.js.flow +0 -23
  104. package/src/integration_tests/basic_bundle/require-resolveWeak/never-required.js +0 -8
  105. package/src/integration_tests/basic_bundle/require-resolveWeak/never-required.js.flow +0 -21
  106. package/src/integration_tests/basic_bundle/require-resolveWeak/require-and-resolveWeak.js +0 -13
  107. package/src/integration_tests/basic_bundle/require-resolveWeak/require-and-resolveWeak.js.flow +0 -33
  108. package/src/integration_tests/basic_bundle/require-resolveWeak/subdir/counter-module.js +0 -9
  109. package/src/integration_tests/basic_bundle/require-resolveWeak/subdir/counter-module.js.flow +0 -18
  110. package/src/integration_tests/basic_bundle/require-resolveWeak/subdir/throwing-module.js +0 -3
  111. package/src/integration_tests/basic_bundle/require-resolveWeak/subdir/throwing-module.js.flow +0 -11
  112. package/src/integration_tests/basic_bundle/require-resolveWeak/utils.js +0 -1
  113. package/src/integration_tests/basic_bundle/require-resolveWeak/utils.js.flow +0 -14
  114. package/src/integration_tests/basic_bundle/test.png +0 -0
  115. package/src/integration_tests/execBundle.js +0 -12
  116. package/src/integration_tests/execBundle.js.flow +0 -19
  117. 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.86.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.86.0",
43
- "metro-cache": "0.86.0",
44
- "metro-cache-key": "0.86.0",
45
- "metro-config": "0.86.0",
46
- "metro-core": "0.86.0",
47
- "metro-file-map": "0.86.0",
48
- "metro-resolver": "0.86.0",
49
- "metro-runtime": "0.86.0",
50
- "metro-source-map": "0.86.0",
51
- "metro-symbolicate": "0.86.0",
52
- "metro-transform-plugins": "0.86.0",
53
- "metro-transform-worker": "0.86.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.86.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",
@@ -205,6 +205,8 @@ class ModuleResolver {
205
205
  };
206
206
  case "empty":
207
207
  return this._getEmptyModule();
208
+ case "virtualModule":
209
+ throw new Error("Virtual modules are not yet implemented.");
208
210
  default:
209
211
  resolution.type;
210
212
  throw new Error("invalid type");
@@ -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,7 +0,0 @@
1
- "use strict";
2
-
3
- module.exports = {
4
- registerAsset(data) {
5
- return data;
6
- },
7
- };
@@ -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,7 +0,0 @@
1
- "use strict";
2
-
3
- const Foo = require("./Foo");
4
- module.exports = {
5
- type: "bar",
6
- foo: Foo.type,
7
- };
@@ -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,8 +0,0 @@
1
- "use strict";
2
-
3
- require("./AssetRegistry");
4
- const calcSum = (value) => {
5
- const error = new Error("SOURCEMAP: value: " + value);
6
- return error;
7
- };
8
- module.exports = calcSum("anything");
@@ -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,7 +0,0 @@
1
- "use strict";
2
-
3
- const asset = require("./test.png");
4
- module.exports = {
5
- type: "foo",
6
- asset,
7
- };
@@ -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,5 +0,0 @@
1
- "use strict";
2
-
3
- var a = 2n;
4
- var b = 3n;
5
- module.exports = a ** b;
@@ -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,13 +0,0 @@
1
- "use strict";
2
-
3
- const Bar = require("./Bar");
4
- const Foo = require("./Foo");
5
- const TypeScript = require("./TypeScript");
6
- Object.keys({
7
- ...Bar,
8
- });
9
- module.exports = {
10
- Foo,
11
- Bar,
12
- TypeScript,
13
- };
@@ -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,3 +0,0 @@
1
- "use strict";
2
-
3
- module.exports = global.POLYFILL_IS_INJECTED;
@@ -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,7 +0,0 @@
1
- "use strict";
2
-
3
- var _doesNotExist = _interopRequireDefault(require("./does-not-exist"));
4
- function _interopRequireDefault(e) {
5
- return e && e.__esModule ? e : { default: e };
6
- }
7
- global.x = _doesNotExist.default;
@@ -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,4 +0,0 @@
1
- "use strict";
2
-
3
- var _doesNotExist = require("./does-not'\"-exist");
4
- global.x = _doesNotExist.aaaaaaaaaa;
@@ -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,4 +0,0 @@
1
- "use strict";
2
-
3
- var _doesNotExist = require("./does-not-exist");
4
- global.x = _doesNotExist.aaaaaaaaaa;
@@ -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,4 +0,0 @@
1
- "use strict";
2
-
3
- const DoesNotExist = require("./foo");
4
- global.x = DoesNotExist;
@@ -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,4 +0,0 @@
1
- "use strict";
2
-
3
- const DoesNotExist = require("./does-not-exist");
4
- global.x = DoesNotExist;
@@ -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,4 +0,0 @@
1
- "use strict";
2
-
3
- var _doesNotExist = require("./does-not'\"-exist");
4
- global.x = _doesNotExist.DoesNotExist;
@@ -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,7 +0,0 @@
1
- "use strict";
2
-
3
- var _doesNotExist = _interopRequireDefault(require("./does-not-exist"));
4
- function _interopRequireDefault(e) {
5
- return e && e.__esModule ? e : { default: e };
6
- }
7
- global.x = _doesNotExist.default;
@@ -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,4 +0,0 @@
1
- "use strict";
2
-
3
- const DoesNotExist = require("./does-not-exist");
4
- global.x = DoesNotExist;
@@ -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,7 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true,
5
- });
6
- exports.default = void 0;
7
- var _default = (exports.default = "/* secret */");
@@ -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
- }