node-kit icon indicating copy to clipboard operation
node-kit copied to clipboard

Sourcemap support

Open kenguest opened this issue 1 year ago • 1 comments

Are there plans to generate sourcemaps ( https://web.dev/articles/source-maps & https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k/edit?pli=1#heading=h.1ce2c87bpj24 ) so that when debugging through an assembled file created by gulp-kit the browser/ide knows which smaller file the code came from and opens the correct one at the right line?

Having this would be fantastic.

kenguest avatar Nov 16 '23 12:11 kenguest

Seeing that the last commit was five years ago, I am not thinking there are plans to add it, but I am guessing there's a high probability Jeremy would accept a PR that adds the feature 😉 I had a look at the spec, and the scariest bit was the VLQ encoding stuff, but I found a Node library that takes care of this, so it should be totally doable. If you got an itch to scratch ...

(I haven't used *.kit or Codekit files since 2014, so this is for someone else)

fatso83 avatar Nov 17 '23 14:11 fatso83