Skip to content

Commit 28409d2

Browse files
committed
[Vue][React][Svelte] Fix controllers assets compilation on Windows server
1 parent 59cb869 commit 28409d2

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/React/src/AssetMapper/ReactControllerLoaderAssetCompiler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public function compile(string $content, MappedAsset $asset, AssetMapperInterfac
5555
$importLines[] = \sprintf(
5656
"import %s from '%s';",
5757
$controllerNameForVariable,
58-
$relativeImportPath
58+
Path::normalize($relativeImportPath)
5959
);
6060
$componentParts[] = \sprintf('"%s": %s', $name, $controllerNameForVariable);
6161
}

src/Svelte/src/AssetMapper/SvelteControllerLoaderAssetCompiler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public function compile(string $content, MappedAsset $asset, AssetMapperInterfac
5555
$importLines[] = \sprintf(
5656
"import %s from '%s';",
5757
$controllerNameForVariable,
58-
$relativeImportPath
58+
Path::normalize($relativeImportPath)
5959
);
6060
$componentParts[] = \sprintf('"%s": %s', $name, $controllerNameForVariable);
6161
}

src/Vue/src/AssetMapper/VueControllerLoaderAssetCompiler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public function compile(string $content, MappedAsset $asset, AssetMapperInterfac
5555
$importLines[] = \sprintf(
5656
"import %s from '%s';",
5757
$controllerNameForVariable,
58-
$relativeImportPath
58+
Path::normalize($relativeImportPath),
5959
);
6060
$componentParts[] = \sprintf('"%s": %s', $name, $controllerNameForVariable);
6161
}

0 commit comments

Comments
 (0)