FranckFreiburger / vue3-sfc-loader

Single File Component loader for Vue2 and Vue3. Load .vue files directly from your HTML. No node.js environment, no build step.
MIT License
1.19k stars 127 forks source link

feat(core): Add inline source-maps #200

Open tucker87 opened 3 months ago

tucker87 commented 3 months ago

Used babel's inline source mapping tools to carry the source maps all the way through the build chain.

image

Notes:

  1. I could not manage to run the jest tests.
  2. I have only done minor tests so far and would like help finding issues as I'm new to this project.
  3. I'm not sure about the use of eval() but I couldn't find a way around it.
  4. May need to break this out into a new option instead of how I used genSourceMap.
  5. ~I need to test this with the options API for sure as I'm almost positive that this will be undefined.~

Edit: I just saw the Contrubuting.md and will alter my PR as soon as I am free.

tucker87 commented 2 months ago

This is based on PR #196 as I couldn't get it to work without it.