Skip to content

Commit 3190254

Browse files
authored
fix(nuxt): pass nuxt + workspace paths when importing builder (#19099)
1 parent ac682fd commit 3190254

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/nuxt/src/core/builder.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ function watch (nuxt: Nuxt) {
6161
async function bundle (nuxt: Nuxt) {
6262
try {
6363
const { bundle } = typeof nuxt.options.builder === 'string'
64-
? await importModule(nuxt.options.builder, { paths: nuxt.options.rootDir })
64+
? await importModule(nuxt.options.builder, { paths: [nuxt.options.rootDir, nuxt.options.workspaceDir, import.meta.url] })
6565
: nuxt.options.builder
6666

6767
return bundle(nuxt)

0 commit comments

Comments
 (0)