Chore: Change jsonMarkup.js to esm (#99269)

pull/99882/head
Josh Hunt 6 months ago committed by GitHub
parent 3372720a52
commit abc76f8aad
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      public/app/features/explore/TraceView/components/TraceTimelineViewer/SpanDetail/jsonMarkup.js

@ -67,7 +67,7 @@ function escape(str) {
return str.replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/"/g, '&quot;');
}
module.exports = function (doc, styleFile) {
export default function jsonMarkup(doc, styleFile) {
let indent = '';
const style = Stylize(styleFile);
@ -130,4 +130,4 @@ module.exports = function (doc, styleFile) {
}
return '<div ' + style('json-markup') + '>' + visit(doc) + '</div>';
};
}

Loading…
Cancel
Save