File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
packages/react-native-builder-bob/src/utils Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -54,10 +54,12 @@ export default async function compile({
54
54
55
55
const content = await fs . readFile ( filepath , 'utf-8' ) ;
56
56
const result = await babel . transformAsync ( content , {
57
+ cwd : root ,
57
58
babelrc : babelrc ,
58
59
configFile : configFile ,
59
60
sourceMaps,
60
- sourceRoot : path . relative ( output , source ) ,
61
+ sourceRoot : path . relative ( path . dirname ( outputFilename ) , source ) ,
62
+ sourceFileName : path . relative ( source , filepath ) ,
61
63
filename : filepath ,
62
64
...( babelrc || configFile
63
65
? null
@@ -66,7 +68,6 @@ export default async function compile({
66
68
[
67
69
require . resolve ( '@babel/preset-env' ) ,
68
70
{
69
- // @ts -ignore
70
71
targets : browserslist . findConfig ( root ) ?? {
71
72
browsers : [
72
73
'>1%' ,
You can’t perform that action at this time.
0 commit comments