Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Vue 3: `vue.config.js` configuration for Amplify UI Components
module.exports = {
chainWebpack: config => {
config.module
.rule('vue')
.use('vue-loader')
.tap(options => {
options.compilerOptions = {
...(options.compilerOptions || {}),
isCustomElement: tag => tag.startsWith('amplify-')
};
return options;
});
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment