fix: importMap windows paths (#7706)
Fix windows compatibility for importMap generation
This commit is contained in:
@@ -67,7 +67,7 @@ export function addPayloadComponentToImportMap({
|
|||||||
imports[importIdentifier] = {
|
imports[importIdentifier] = {
|
||||||
path:
|
path:
|
||||||
componentPath.startsWith('.') || componentPath.startsWith('/')
|
componentPath.startsWith('.') || componentPath.startsWith('/')
|
||||||
? path.join(baseDir, componentPath.slice(1))
|
? path.posix.join(baseDir.replace(/\\/g, '/'), componentPath.slice(1))
|
||||||
: componentPath,
|
: componentPath,
|
||||||
specifier: exportName,
|
specifier: exportName,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user