Skip to content

Commit

Permalink
ignore ts warning for Alias
Browse files Browse the repository at this point in the history
  • Loading branch information
huang-julien committed Sep 3, 2022
1 parent 7dc68b7 commit 0f1fe86
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ export default defineNuxtModule({
// set vue esm on client
nuxt.hook('vite:extendConfig', (config, { isClient }) => {
if (isClient) {
// @ts-ignore -- expect an object
config.resolve.alias.vue = 'vue/dist/vue.esm-bundler'
}
})
Expand Down

0 comments on commit 0f1fe86

Please sign in to comment.