mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-07 04:26:32 +08:00
This refactors away the cachedResources from an object map to a normal Map as defined in `Runtime.js`. The Map is used during boot time by setting the relevant stylesheet contents, which is included by `build_release_applications`. Moreover, it moves the `*_module.js` files into the `modules` array rather than scripts. This ensures that `*_module.js` files can use ES imports. In a follow-up CL, we can do additional cleanup in the Runtime to stop retrieving `resources` in `_loadResources`, as that should no longer be possible. (In both debug and non-debug we build the appropriate `_module.js` files) R=aerotwist@chromium.org,aerotwist@chromium.org Bug: 1058320 Change-Id: I89602b332360338f5914038f6cd505f75b531f8e Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2398829 Reviewed-by: Paul Lewis <aerotwist@chromium.org> Reviewed-by: Jack Franklin <jacktfranklin@chromium.org> Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>