File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
src/platforms/vue-native/scripts Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -32,17 +32,18 @@ if (reactNativeMinorVersion >= 59) {
3232function sourceMapAstInPlace ( sourceMap , babelAst ) {
3333 const consumer = new SourceMapConsumer ( sourceMap )
3434
35- traverse . cheap ( babelAst , node => {
35+ traverse . cheap ( babelAst , ( node ) => {
3636 if ( node . loc ) {
3737 const originalStart = consumer . originalPositionFor ( node . loc . start )
38+ // Removed the column mapping with original position as we have only mapped lines during generation
3839 if ( originalStart . line ) {
3940 node . loc . start . line = originalStart . line
40- node . loc . start . column = originalStart . column
41+ // node.loc.start.column = originalStart.column
4142 }
4243 const originalEnd = consumer . originalPositionFor ( node . loc . end )
4344 if ( originalEnd . line ) {
4445 node . loc . end . line = originalEnd . line
45- node . loc . end . column = originalEnd . column
46+ // node.loc.end.column = originalEnd.column
4647 }
4748 }
4849 } )
You can’t perform that action at this time.
0 commit comments