-
-
Notifications
You must be signed in to change notification settings - Fork 128
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Include SourceMaps #198
Labels
enhancement
New feature or request
Comments
In case you want to replicate my test. mycomponent.vue <template>
Hi {{ a }} {{ b }}
</template>
<script setup>
import {ref} from 'vue'
import b from './index.mjs'
const a = ref(null)
a.value = 1
console.log(a)
//console.log(b)
</script> index.mjs console.log('index.mjs running')
a = 2;
let a = 1;
console.log(a)
export default a |
tucker87
added a commit
to tucker87/vue3-sfc-loader
that referenced
this issue
Aug 31, 2024
This provides error information in the browser. Including the original source Fixes: FranckFreiburger#198
tucker87
added a commit
to tucker87/vue3-sfc-loader
that referenced
this issue
Oct 13, 2024
This provides error information in the browser. Including the original source Fixes: FranckFreiburger#198
tucker87
added a commit
to tucker87/vue3-sfc-loader
that referenced
this issue
Oct 13, 2024
This provides error information in the browser. Including the original source Removed changes to genSourceMap as I realized it was unrelated Fixes: FranckFreiburger#198
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey all, I've spent some free time the last couple weeks digging into this project. And I have a loose grasp on it now.
I really want to use this but I find debugging errors to be quite challenging so I set out to see if I could get sourceMaps to show up.
I see some notes in the code about removing sourceMaps so maybe I'm missing some other feature that helps with this issue?
I've push my work so far here. (The changes are a mess, and many are just trial/error)
https://github.com/tucker87/vue3-sfc-loader
I've gotten the source maps to show up and the error message does have a link to the error. But the line seems to be wrong, it's one line lower than it should be. This may be due to the code being wrapped in an anonymous function just before it is read?
Note: The
.mjs.v
file comes from the intermediary code. It was being called "unknown" and I just gave it a name to help me debug.Is this a feature I should continue to work on?
The text was updated successfully, but these errors were encountered: