Should be similar in Vue3, except ignoredElements is now isCustomElement. Also you need to distiguish between on-the-fly compilation and pre-compilation. This page in the docs should help you.
ignoredElements
isCustomElement
On-the-fly example:
const app = Vue.createApp({}); app.config.isCustomElement = tag => tag.startsWith('ion-');
Webpack example in vue.config.js:
vue.config.js
module.exports = { chainWebpack: config => { config.module.rule('vue').use('vue-loader').loader('vue-loader').tap(options => { options.compilerOptions = { ...(options.compilerOptions || {}), isCustomElement: tag => /^ion-/.test(tag) }; return options; }); } }
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Should be similar in Vue3, except
ignoredElements
is nowisCustomElement
. Also you need to distiguish between on-the-fly compilation and pre-compilation. This page in the docs should help you.On-the-fly example:
Webpack example in
vue.config.js
: