mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Generate correct source map if hermes not enabled (#25700)
This commit is contained in:
committed by
Christoph Nakazawa
parent
0190c9c97b
commit
b1f81be4bc
+2
-9
@@ -126,11 +126,11 @@ afterEvaluate {
|
||||
if (Os.isFamily(Os.FAMILY_WINDOWS)) {
|
||||
commandLine("cmd", "/c", *nodeExecutableAndArgs, cliPath, bundleCommand, "--platform", "android", "--dev", "${devEnabled}",
|
||||
"--reset-cache", "--entry-file", entryFile, "--bundle-output", jsBundleFile, "--assets-dest", resourcesDir,
|
||||
"--sourcemap-output", jsPackagerSourceMapFile, *extraArgs)
|
||||
"--sourcemap-output", enableHermes ? jsPackagerSourceMapFile : jsOutputSourceMapFile, *extraArgs)
|
||||
} else {
|
||||
commandLine(*nodeExecutableAndArgs, cliPath, bundleCommand, "--platform", "android", "--dev", "${devEnabled}",
|
||||
"--reset-cache", "--entry-file", entryFile, "--bundle-output", jsBundleFile, "--assets-dest", resourcesDir,
|
||||
"--sourcemap-output", jsPackagerSourceMapFile, *extraArgs)
|
||||
"--sourcemap-output", enableHermes ? jsPackagerSourceMapFile : jsOutputSourceMapFile, *extraArgs)
|
||||
}
|
||||
|
||||
if (enableHermes) {
|
||||
@@ -167,13 +167,6 @@ afterEvaluate {
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
doLast {
|
||||
ant.move(
|
||||
file: jsPackagerSourceMapFile,
|
||||
tofile: jsOutputSourceMapFile
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
enabled config."bundleIn${targetName}" != null
|
||||
|
||||
Reference in New Issue
Block a user