fix(nuxt): pass nuxt + workspace paths when importing builder (#19099)

This commit is contained in:
Daniel Roe 2023-02-17 00:59:24 +00:00 committed by GitHub
parent ac682fd32c
commit 3190254bbd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)