From 97e48393bd9d0c2f324932b44c07c1add0bfb052 Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Mon, 6 Nov 2023 11:32:35 +0100 Subject: [PATCH] render newline in front of all script elements --- .../Component/AssetMapper/ImportMap/ImportMapRenderer.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Symfony/Component/AssetMapper/ImportMap/ImportMapRenderer.php b/src/Symfony/Component/AssetMapper/ImportMap/ImportMapRenderer.php index 839bac2b2ef37..ef955fca1447c 100644 --- a/src/Symfony/Component/AssetMapper/ImportMap/ImportMapRenderer.php +++ b/src/Symfony/Component/AssetMapper/ImportMap/ImportMapRenderer.php @@ -91,6 +91,7 @@ public function render(string|array $entryPoint, array $attributes = []): string $scriptAttributes = $this->createAttributesString($attributes); $importMapJson = json_encode(['imports' => $importMap], \JSON_THROW_ON_ERROR | \JSON_PRETTY_PRINT | \JSON_UNESCAPED_SLASHES | \JSON_HEX_TAG); $output .= << $importMapJson