@@ -126,11 +126,11 @@ afterEvaluate {
126
126
if (Os . isFamily(Os . FAMILY_WINDOWS )) {
127
127
commandLine(" cmd" , " /c" , * nodeExecutableAndArgs, cliPath, bundleCommand, " --platform" , " android" , " --dev" , " ${ devEnabled} " ,
128
128
" --reset-cache" , " --entry-file" , entryFile, " --bundle-output" , jsBundleFile, " --assets-dest" , resourcesDir,
129
- " --sourcemap-output" , jsPackagerSourceMapFile, * extraArgs)
129
+ " --sourcemap-output" , enableHermes ? jsPackagerSourceMapFile : jsOutputSourceMapFile , * extraArgs)
130
130
} else {
131
131
commandLine(* nodeExecutableAndArgs, cliPath, bundleCommand, " --platform" , " android" , " --dev" , " ${ devEnabled} " ,
132
132
" --reset-cache" , " --entry-file" , entryFile, " --bundle-output" , jsBundleFile, " --assets-dest" , resourcesDir,
133
- " --sourcemap-output" , jsPackagerSourceMapFile, * extraArgs)
133
+ " --sourcemap-output" , enableHermes ? jsPackagerSourceMapFile : jsOutputSourceMapFile , * extraArgs)
134
134
}
135
135
136
136
if (enableHermes) {
@@ -167,13 +167,6 @@ afterEvaluate {
167
167
}
168
168
}
169
169
}
170
- } else {
171
- doLast {
172
- ant. move(
173
- file : jsPackagerSourceMapFile,
174
- tofile : jsOutputSourceMapFile
175
- );
176
- }
177
170
}
178
171
179
172
enabled config. " bundleIn${ targetName} " != null
0 commit comments