Skip to content

Commit

Permalink
defined __VUE_OPTIONS_API__ and __VUE_PROD_DEVTOOLS__ in the static v…
Browse files Browse the repository at this point in the history
…ue3 template to eliminate console warning
  • Loading branch information
sincspecv committed Jul 22, 2023
1 parent 3b16c98 commit ea81a48
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cli/plasmo/templates/static/vue3/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@ import { createApp } from "vue"

import * as Component from "__plasmo_import_module__"

__VUE_OPTIONS_API__ = true
if(process.env.NODE_ENV !== 'production') {
__VUE_PROD_DEVTOOLS__ = true
} else {
__VUE_PROD_DEVTOOLS__ = false
}

document.addEventListener("DOMContentLoaded", () => {
const app = createApp(Component.default)
Component.default.prepare?.(app)
Expand Down

0 comments on commit ea81a48

Please sign in to comment.