Skip to content

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.

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

2 participants