Commit 60e75dc 1 parent b1f81be commit 60e75dc Copy full SHA for 60e75dc
File tree 1 file changed +7
-4
lines changed
1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -76,10 +76,11 @@ afterEvaluate {
76
76
def resourcesDir = file(" $buildDir /generated/res/react/${ targetPath} " )
77
77
78
78
def jsBundleFile = file(" $jsBundleDir /$bundleAssetName " )
79
- def jsSourceMapsDir = file(" $buildDir /intermediates/sourcemaps/${ targetPath} " )
80
- def jsPackagerSourceMapFile = file(" $jsSourceMapsDir /${ bundleAssetName} .packager.map" )
81
- def jsCompilerSourceMapFile = file(" $jsSourceMapsDir /${ bundleAssetName} .compiler.map" )
82
- def jsOutputSourceMapFile = file(" $jsBundleDir /${ bundleAssetName} .map" )
79
+ def jsSourceMapsDir = file(" $buildDir /generated/sourcemaps/react/${ targetPath} " )
80
+ def jsIntermediateSourceMapsDir = file(" $buildDir /intermediates/sourcemaps/react/${ targetPath} " )
81
+ def jsPackagerSourceMapFile = file(" $jsIntermediateSourceMapsDir /${ bundleAssetName} .packager.map" )
82
+ def jsCompilerSourceMapFile = file(" $jsIntermediateSourceMapsDir /${ bundleAssetName} .compiler.map" )
83
+ def jsOutputSourceMapFile = file(" $jsSourceMapsDir /${ bundleAssetName} .map" )
83
84
84
85
// Additional node and packager commandline arguments
85
86
def nodeExecutableAndArgs = config. nodeExecutableAndArgs ?: [" node" ]
@@ -99,6 +100,8 @@ afterEvaluate {
99
100
jsBundleDir. mkdirs()
100
101
resourcesDir. deleteDir()
101
102
resourcesDir. mkdirs()
103
+ jsIntermediateSourceMapsDir. deleteDir()
104
+ jsIntermediateSourceMapsDir. mkdirs()
102
105
jsSourceMapsDir. deleteDir()
103
106
jsSourceMapsDir. mkdirs()
104
107
}
You can’t perform that action at this time.
0 commit comments