Commit 3430036
Breaking: use named export in metro-cache-key
Summary:
Switch `metro-cache-key` from a function-typed `module.exports` to a named `getCacheKey` export.
This will help convert the module to ESM syntax with generated TS types without any issues with `default` export interop. It's also more IDE-friendly.
Changelog:
```
- **[Breaking]**: metro-cache-key: Use a named `getCacheKey` export in place of default function export
```
Reviewed By: vzaidman
Differential Revision: D78157825
fbshipit-source-id: 30f12fc905d4cb46dce20898ef8246377b30661b1 parent 69bde93 commit 3430036
File tree
4 files changed
+4
-4
lines changed- packages
- metro-cache-key/src
- __tests__
- metro-transform-worker/src
- metro/src/DeltaBundler
4 files changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
0 commit comments