You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To enable it, add the `VueComponentDebug` plugin to your Vue application. This can be done in your main entry file (e.g., `main.js` or `main.ts`):
52
52
53
53
```javascript
54
-
import { createApp } from'vue'
55
-
importVueComponentDebugfrom'vue-component-debug'
56
-
importAppfrom'./App.vue'
54
+
import { createApp } from'vue';
55
+
importVueComponentDebugfrom'vue-component-debug';
56
+
importAppfrom'./App.vue';
57
57
58
-
constapp=createApp(App)
58
+
constapp=createApp(App);
59
59
60
-
app.use(VueComponentDebug)
60
+
app.use(VueComponentDebug);
61
61
62
-
app.mount('#app')
62
+
app.mount('#app');
63
63
```
64
64
65
-
Comments will only be added in development mode.
65
+
By default, comments will always be outputted while in development mode and removed in production mode. However, you're welcome to override this behavior by passing an `enabled` option to the plugin:
0 commit comments