Commit 21c7dd47 authored by aniket-engg's avatar aniket-engg Committed by Aniket

code hightlighting using location

parent ed4bff7e
......@@ -200,7 +200,7 @@ export const RemixUiStaticAnalyser = (props: RemixUiStaticAnalyserProps) => {
let column = 0
let row = 0
let fileName = currentFile
if (item.sourceMap & item.sourceMap.length) {
if (item.sourceMap && item.sourceMap.length) {
location = {
start: item.sourceMap[0].source_mapping.start,
length: item.sourceMap[0].source_mapping.length
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment