We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f68102 commit 58b0f85Copy full SHA for 58b0f85
libraries/src/WebAsset/WebAssetItem.php
@@ -177,7 +177,10 @@ public function getUri($resolvePath = true): string
177
break;
178
default:
179
// Asset for the ES modules may give us a folder for ESM import map
180
- if (str_ends_with($path, '/') && !str_starts_with($path, '.')) {
+ if (
181
+ $this->getOption('importmap') && !$this->isPathExternal($path) &&
182
+ str_ends_with($path, '/') && !str_starts_with($path, '.')
183
+ ) {
184
$path = Uri::root(true) . '/' . $path;
185
}
186
0 commit comments