-
-
Save sanjmen/7676d3e72b18f52c9e8bbbc0fc7efa13 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