Skip to content

[Q2 Vite]: vueCompiler: true, does not seem to enable vue compiler #13862

Discussion options

You must be logged in to vote

Since you are using the runtime-only build, compilerOptions must be passed to @vue/compiler-dom in the build setup instead.

You don't need the runtime compiler for this, just pass the build-time options as it says. See Vue docs.

https://quasar.dev/quasar-cli-vite/quasar-config-js#build

build: {
  viteVuePluginOptions: {
    template: {
      compilerOptions: {
        isCustomElement: (tag) => tag.startsWith('my-')
      }
    }
  }
}

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@yusufkandemir
Comment options

@ssuess
Comment options

Answer selected by ssuess
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants