Skip to content

Instantly share code, notes, and snippets.

@wlee221
Last active October 12, 2021 13:53
Show Gist options
  • Save wlee221/3d47f9598d5ad85bfa7a138bad112c3c to your computer and use it in GitHub Desktop.
Save wlee221/3d47f9598d5ad85bfa7a138bad112c3c to your computer and use it in GitHub Desktop.
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