title: Using Stencil components with Ionic Vue
body: <p>In the Stencil docs section on framework integration with Vue it states the following:</p>
  <blockquote>
  <p>In order to use the custom element library within the Vue app, the
  application must be modified to define the custom elements and to
  inform the Vue compiler which elements to ignore during compilation.</p>
  </blockquote>
  <p>According to the same page this can be achieved by modifying the config of your Vue instance like this:</p>
  <pre><code>Vue.config.ignoredElements = [/test-\w*/];
  </code></pre>
  <p>This relates to Vue 2 however. With Vue 3 (which Ionic Vue uses) you have to use isCustomElement as stated here.</p>
  <p>Regretably, I can’t for the life of me get Vue and Stencil to play nice. I have tried setting the config like this:</p>
  <pre><code>app.config.compilerOptions.isCustomElement = tag =&gt; /gc-\w*/.test(tag)
  </code></pre>
  <p>This causes Vue throw the following warning in the console:</p>
  <pre><code>[Vue warn]: The `compilerOptions` config option is only respected when using a build of Vue.js that includes the runtime compiler (aka &quot;full build&quot;). Since you are using the runtime-only build, `compilerOptions` must be passed to `@vue/compiler-dom` in the build setup instead.
  - For vue-loader: pass it via vue-loader's `compilerOptions` loader option.
  - For vue-cli: see https://cli.vuejs.org/guide/webpack.html#modifying-options-of-a-loader
  - For vite: pass it via @vitejs/plugin-vue options. See https://github.com/vitejs/vite/tree/main/p
  </code></pre>
  <p>However, I have no idea how to implement any of the above suggestions using Ionic Vue. I have been messing around with <code>chainWebpack</code> in <code>config.vue.js</code> but without success so far.</p>
  <p>Any help would be greatly appreciated.</p>