Skip to content

fix: add a default sourceURL to aid debugging#101

Merged
maartenbreddels merged 1 commit intomasterfrom
fix_source_url
Feb 10, 2026
Merged

fix: add a default sourceURL to aid debugging#101
maartenbreddels merged 1 commit intomasterfrom
fix_source_url

Conversation

@maartenbreddels
Copy link
Collaborator

Fixes #100
Now we get a better stacktrace:
image

Which we can click again, and get some context.

Note that also a user can add a sourceURL, e.g.:

        <template>
            <div @click="click">Clicked {{clicks}}</div>
        </template>
        <script>
            module.exports = {
                mounted() {
                    console.log('mounted');
                    a = window.a.b.c;
                    console.log('a', a);
                },
                methods: {
                    click() {
                        this.clicks += 1
                    }
                }

            }
            //# sourceURL=testtemplate.vue
        </script>

I can imagine that we'd want to add this based on the vue template filename, but that might leak sensitive information, so I didn't want to go there yet.

@maartenbreddels maartenbreddels merged commit e3cf902 into master Feb 10, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Script are not "clickable" in the dev console anymore

1 participant