3

When i was using webpack, I cannot access window.Vue, but the vue devtool can still work to tell whether the webpage uses vue, no matter in development mode or not.

Angular and react have their devtools too, which, i believe, can do the job as well.

I want to know, does the tool managed to access the Vue object through other methods? or is it something related to webpack?

0

1 Answer 1

4

Vue devtools scans the DOM looking for DOM elements that have the __vue__ property.

Here is the code.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.