Skip to content

Commit

Permalink
fix: vue-loader support for PascalCase components (#168)
Browse files Browse the repository at this point in the history
  • Loading branch information
farnabaz committed May 12, 2021
1 parent 106a644 commit 8629e3f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,9 @@ const imageModule: Module<ModuleOptions> = async function imageModule (moduleOpt
})
})

// transform asset urls that pass to `src` attribute on image components
nuxt.options.build.loaders = defu({
vue: { transformAssetUrls: { 'nuxt-img': 'src', 'nuxt-picture': 'src' } }
vue: { transformAssetUrls: { 'nuxt-img': 'src', 'nuxt-picture': 'src', NuxtPicture: 'src', NuxtImg: 'src' } }
}, nuxt.options.build.loaders || {})

nuxt.hook('generate:before', () => {
Expand Down

0 comments on commit 8629e3f

Please sign in to comment.