diff --git a/packages/nuxt/src/core/builder.ts b/packages/nuxt/src/core/builder.ts index 7e0286102e..7fec4de4b6 100644 --- a/packages/nuxt/src/core/builder.ts +++ b/packages/nuxt/src/core/builder.ts @@ -61,7 +61,7 @@ function watch (nuxt: Nuxt) { async function bundle (nuxt: Nuxt) { try { const { bundle } = typeof nuxt.options.builder === 'string' - ? await importModule(nuxt.options.builder, { paths: nuxt.options.rootDir }) + ? await importModule(nuxt.options.builder, { paths: [nuxt.options.rootDir, nuxt.options.workspaceDir, import.meta.url] }) : nuxt.options.builder return bundle(nuxt)