Skip to content

Commit

Permalink
fix(nuxt): pass nuxt + workspace paths when importing builder (#19099)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Feb 17, 2023
1 parent ac682fd commit 3190254
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/nuxt/src/core/builder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 3190254

Please sign in to comment.