mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-01 01:38:07 +08:00
front_end/Runtime.js was doing multiple things: it was instantiating side-effecty descriptors and initializing applications, as well as storing all state for the modules/extensions, etc... To support proper ES Modules, we need to separate these. root/Runtime.js contains simple classes that store the data and can be retrieved, as well as some helper functions that will load the respective data. The RuntimeInstantiator.js code includes the start functions used in the entrypoints themselves. They will use an instance of the Runtime to properly load the application. Along the way, I also fixed various TypeScript errors, mostly around incorrect or missing type definitions. R=aerotwist@chromium.org,jacktfranklin@chromium.org Bug: 1011811 Change-Id: If3ddea9267813691b3faeb6ea4b0cf64edbde1f4 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2107523 Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org> Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
7 lines
76 B
JSON
7 lines
76 B
JSON
{
|
|
"modules": [
|
|
"root-legacy.js",
|
|
"root.js",
|
|
"Runtime.js"
|
|
]
|
|
} |