@@ -87,7 +87,6 @@ async function runReactNativeBundleCommand(
87
87
}
88
88
}
89
89
const bundleParams = await checkPlugins ( ) ;
90
- const minifyOption = bundleParams . minify ;
91
90
const isSentry = bundleParams . sentry ;
92
91
const bundleCommand = usingExpo
93
92
? 'export:embed'
@@ -126,8 +125,6 @@ async function runReactNativeBundleCommand(
126
125
'--platform' ,
127
126
platform ,
128
127
'--reset-cache' ,
129
- '--minify' ,
130
- minifyOption ,
131
128
] ) ;
132
129
133
130
if ( sourcemapOutput ) {
@@ -420,7 +417,7 @@ async function pack(dir, output) {
420
417
}
421
418
const childs = fs . readdirSync ( root ) ;
422
419
for ( const name of childs ) {
423
- if ( name === '.' || name === '..' || name === 'index.bundlejs.map' ) {
420
+ if ( name === '.' || name === '..' || name === 'index.bundlejs.map' || name === 'index.bundlejs.txt.map' ) {
424
421
continue ;
425
422
}
426
423
const fullPath = path . join ( root , name ) ;
@@ -814,14 +811,14 @@ export const commands = {
814
811
options . platform || ( await question ( '平台(ios/android/harmony):' ) ) ,
815
812
) ;
816
813
817
- const { bundleName, entryFile, intermediaDir, output, dev } =
814
+ const { bundleName, entryFile, intermediaDir, output, dev, sourcemap } =
818
815
translateOptions ( {
819
816
...options ,
820
817
platform,
821
818
} ) ;
822
819
823
820
const bundleParams = await checkPlugins ( ) ;
824
- const sourcemap = bundleParams . sourcemap ;
821
+ const sourcemapPlugin = bundleParams . sourcemap ;
825
822
const isSentry = bundleParams . sentry ;
826
823
827
824
const sourcemapOutput = path . join ( intermediaDir , `${ bundleName } .map` ) ;
@@ -842,7 +839,7 @@ export const commands = {
842
839
entryFile ,
843
840
intermediaDir ,
844
841
platform ,
845
- sourcemap ? sourcemapOutput : '' ,
842
+ sourcemap || sourcemapPlugin ? sourcemapOutput : '' ,
846
843
) ;
847
844
848
845
await pack ( path . resolve ( intermediaDir ) , realOutput ) ;
0 commit comments