@jsenv/core 23.8.0 → 23.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -108,6 +108,15 @@ export const compileFile = async ({
|
|
|
108
108
|
|
|
109
109
|
if (request.http2) {
|
|
110
110
|
compileResult.dependencies.forEach((dependency) => {
|
|
111
|
+
if (
|
|
112
|
+
compileResult.contentType === "application/javascript" &&
|
|
113
|
+
!dependency.startsWith("./")
|
|
114
|
+
) {
|
|
115
|
+
// js might use importmap to remap bare specifiers
|
|
116
|
+
// so ignore thoose deps (ideally we would resolve using importmap)
|
|
117
|
+
return
|
|
118
|
+
}
|
|
119
|
+
|
|
111
120
|
const requestUrl = resolveUrl(request.ressource, request.origin)
|
|
112
121
|
const dependencyUrl = resolveUrl(dependency, requestUrl)
|
|
113
122
|
if (!urlIsInsideOf(dependencyUrl, request.origin)) {
|