Skip to content

Commit

Permalink
fix(ci): importmap path on windows (#6948)
Browse files Browse the repository at this point in the history
  • Loading branch information
binoy14 committed Jun 18, 2024
1 parent 02dab2a commit 6bbf609
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -195,11 +195,14 @@ export async function buildVendorDependencies({
)
}

const specifier = path.join(packageName, subpath)
const chunkName = path.join(packageName, path.relative(packageName, specifier) || 'index')
const specifier = path.posix.join(packageName, subpath)
const chunkName = path.posix.join(
packageName,
path.relative(packageName, specifier) || 'index',
)

entry[chunkName] = entryPoint
imports[specifier] = path.join('/', basePath, VENDOR_DIR, `${chunkName}.mjs`)
imports[specifier] = path.posix.join('/', basePath, VENDOR_DIR, `${chunkName}.mjs`)
}
}

Expand Down

0 comments on commit 6bbf609

Please sign in to comment.