Skip to content

Commit

Permalink
fix(module): add package name to transpile list as well
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Jan 15, 2021
1 parent 5241c5f commit f97b34a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ async function imageModule (moduleOptions: ModuleOptions) {
// Transpile and alias runtime
const runtimeDir = resolve(__dirname, 'runtime')
nuxt.options.alias['~image'] = runtimeDir
nuxt.options.build.transpile.push(runtimeDir, 'allowlist', 'defu', 'ufo')
nuxt.options.build.transpile.push(runtimeDir, '@nuxt/image', 'allowlist', 'defu', 'ufo')

// Add plugin
addPlugin({
Expand Down

0 comments on commit f97b34a

Please sign in to comment.