You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Symfony/Component/AssetMapper/ImportMap/ImportMapRenderer.php
+7-7
Original file line number
Diff line number
Diff line change
@@ -49,7 +49,7 @@ public function render(string|array $entryPoint, array $attributes = []): string
49
49
$importMap = [];
50
50
$modulePreloads = [];
51
51
$cssLinks = [];
52
-
$polyFillPath = null;
52
+
$polyfillPath = null;
53
53
foreach ($importMapDataas$importName => $data) {
54
54
$path = $data['path'];
55
55
@@ -60,7 +60,7 @@ public function render(string|array $entryPoint, array $attributes = []): string
60
60
61
61
// if this represents the polyfill, hide it from the import map
62
62
if ($importName === $this->polyfillImportName) {
63
-
$polyFillPath = $path;
63
+
$polyfillPath = $path;
64
64
continue;
65
65
}
66
66
@@ -104,21 +104,21 @@ public function render(string|array $entryPoint, array $attributes = []): string
104
104
</script>
105
105
HTML;
106
106
107
-
if (false !== $this->polyfillImportName && null === $polyFillPath) {
107
+
if (false !== $this->polyfillImportName && null === $polyfillPath) {
108
108
if ('es-module-shims' !== $this->polyfillImportName) {
109
109
thrownew \InvalidArgumentException(sprintf('The JavaScript module polyfill was not found in your import map. Either disable the polyfill or run "php bin/console importmap:require "%s"" to install it.', $this->polyfillImportName));
110
110
}
111
111
112
112
// a fallback for the default polyfill in case it's not in the importmap
0 commit comments