-
Notifications
You must be signed in to change notification settings - Fork 15
Conversation
be4d5e3
to
4c58b3f
Compare
4c58b3f
to
d096902
Compare
c5117f2
to
50bdd62
Compare
50bdd62
to
94d18c4
Compare
let sourceMap = lodash.get(queryResult, 'attributes.sourceMap', | ||
lodash.get(queryResult, 'meta.title.attributes.sourceMap', | ||
lodash.get(queryResult, 'attributes.href.attributes.sourceMap', | ||
lodash.get(queryResult, 'content[0].attributes.method.attributes.sourceMap') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a note, in looking at this, I think that all four of these get
functions will be executed each time.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's right.
Consider this as a wonky method...which works.
The idea would then be to modify drafter to include sourcemaps where missing or use again refract-query
to get the nearest source map reference.
Does that make sense?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool 👍
591f779
to
347947e
Compare
48baf40
to
fbd9568
Compare
This PR will make this extension worth to be deployed and announced.
Looking forward!