mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
fix(nuxt): pass nuxt + workspace paths when importing builder (#19099)
This commit is contained in:
parent
ac682fd32c
commit
3190254bbd
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user