@@ -128,9 +128,11 @@ function getFinalPath(element, source, module, info, defaultSpecifier, chunk, js
128
128
let requireDefault = true
129
129
if ( source === 'react-native' ) {
130
130
requireAbsolutePath = getCompPath ( chunk , source , `WX${ element } ` )
131
+ requireAbsolutePath = path . resolve ( configure . inputFullpath , '.' + requireAbsolutePath ) //configure.inputFullpath + (requireAbsolutePath .replace(/\\/g, '/'))
131
132
jsonRelativeFiles . add ( source )
132
133
} else if ( judgeLibPath ( source ) && source === getLibPath ( source ) && getCompPath ( chunk , source , element ) ) {
133
134
requireAbsolutePath = getCompPath ( chunk , source , element )
135
+ requireAbsolutePath = path . resolve ( configure . inputFullpath , '.' + requireAbsolutePath )
134
136
jsonRelativeFiles . add ( source )
135
137
} else {
136
138
const deepSeekResult = deepSeekPath ( element , info . deps [ source ] , defaultSpecifier , chunk )
@@ -143,7 +145,8 @@ function getFinalPath(element, source, module, info, defaultSpecifier, chunk, js
143
145
if ( chunk !== '_rn_' ) {
144
146
const subpageDir = chunk . replace ( '/_rn_' , '' )
145
147
module = module
146
- . replace ( configure . inputFullpath , configure . inputFullpath + '/' + subpageDir )
148
+ . replace ( configure . inputFullpath , configure . inputFullpath + path . sep + subpageDir )
149
+
147
150
}
148
151
149
152
let sp = shortPath ( requireAbsolutePath , module )
0 commit comments