mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
[Android] Generate source maps outside of assets/ (#25710)
This commit is contained in:
committed by
Christoph Nakazawa
parent
b1f81be4bc
commit
60e75dc1ab
+7
-4
@@ -76,10 +76,11 @@ afterEvaluate {
|
||||
def resourcesDir = file("$buildDir/generated/res/react/${targetPath}")
|
||||
|
||||
def jsBundleFile = file("$jsBundleDir/$bundleAssetName")
|
||||
def jsSourceMapsDir = file("$buildDir/intermediates/sourcemaps/${targetPath}")
|
||||
def jsPackagerSourceMapFile = file("$jsSourceMapsDir/${bundleAssetName}.packager.map")
|
||||
def jsCompilerSourceMapFile = file("$jsSourceMapsDir/${bundleAssetName}.compiler.map")
|
||||
def jsOutputSourceMapFile = file("$jsBundleDir/${bundleAssetName}.map")
|
||||
def jsSourceMapsDir = file("$buildDir/generated/sourcemaps/react/${targetPath}")
|
||||
def jsIntermediateSourceMapsDir = file("$buildDir/intermediates/sourcemaps/react/${targetPath}")
|
||||
def jsPackagerSourceMapFile = file("$jsIntermediateSourceMapsDir/${bundleAssetName}.packager.map")
|
||||
def jsCompilerSourceMapFile = file("$jsIntermediateSourceMapsDir/${bundleAssetName}.compiler.map")
|
||||
def jsOutputSourceMapFile = file("$jsSourceMapsDir/${bundleAssetName}.map")
|
||||
|
||||
// Additional node and packager commandline arguments
|
||||
def nodeExecutableAndArgs = config.nodeExecutableAndArgs ?: ["node"]
|
||||
@@ -99,6 +100,8 @@ afterEvaluate {
|
||||
jsBundleDir.mkdirs()
|
||||
resourcesDir.deleteDir()
|
||||
resourcesDir.mkdirs()
|
||||
jsIntermediateSourceMapsDir.deleteDir()
|
||||
jsIntermediateSourceMapsDir.mkdirs()
|
||||
jsSourceMapsDir.deleteDir()
|
||||
jsSourceMapsDir.mkdirs()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user