feat(android): devtools for elements & network requests (#10506)

This commit is contained in:
Osei Fortune
2024-04-07 13:27:42 -04:00
committed by GitHub
parent 7806cc46f4
commit 5324e508ba
19 changed files with 436 additions and 115 deletions

View File

@ -86,7 +86,7 @@ export default function (config: Config, env: IWebpackEnv = _env): Config {
const sourceMapAbsolutePath = getProjectFilePath(
`./${
env.buildPath ?? 'platforms'
}/${platform}-sourceMaps/[file].map[query]`
}/${platform}-sourceMaps/[file].map[query]`,
);
const sourceMapRelativePath = relative(outputPath, sourceMapAbsolutePath);
config.output.sourceMapFilename(sourceMapRelativePath);
@ -272,7 +272,7 @@ export default function (config: Config, env: IWebpackEnv = _env): Config {
const configFile = tsConfigPath
? {
configFile: tsConfigPath,
}
}
: undefined;
// set up ts support
@ -451,7 +451,7 @@ export default function (config: Config, env: IWebpackEnv = _env): Config {
* +-----------------------------------------------------------------------------------------+
*/
/System.import\(\) is deprecated/,
])
]),
);
// todo: refine defaults
@ -518,5 +518,5 @@ function shouldIncludeInspectorModules(): boolean {
const platform = getPlatformName();
// todo: check if core modules are external
// todo: check if we are testing
return platform === 'ios';
return platform === 'ios' || platform === 'android';
}