Last active
October 12, 2021 13:53
-
-
Save wlee221/3d47f9598d5ad85bfa7a138bad112c3c to your computer and use it in GitHub Desktop.
Vue 3: `vue.config.js` configuration for Amplify UI Components
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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