@jsenv/plugin-bundling 2.8.7 → 2.8.8
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
|
@@ -528,7 +528,22 @@ const rollupPluginJsenv = ({
|
|
|
528
528
|
const dynamicImportUrl = getOriginalUrl(
|
|
529
529
|
dynamicImportRollupFileInfo,
|
|
530
530
|
);
|
|
531
|
-
const
|
|
531
|
+
const importerBuildUrl = new URL(
|
|
532
|
+
rollupFileInfo.fileName,
|
|
533
|
+
buildDirectoryUrl,
|
|
534
|
+
).href;
|
|
535
|
+
const urlToImport = new URL(
|
|
536
|
+
dynamicImportRollupFileInfo.fileName,
|
|
537
|
+
buildDirectoryUrl,
|
|
538
|
+
).href;
|
|
539
|
+
const specifierRelative = urlToRelativeUrl(
|
|
540
|
+
urlToImport,
|
|
541
|
+
importerBuildUrl,
|
|
542
|
+
);
|
|
543
|
+
const rollupSpecifier =
|
|
544
|
+
specifierRelative[0] === "."
|
|
545
|
+
? specifierRelative
|
|
546
|
+
: `./${specifierRelative}`;
|
|
532
547
|
specifierToUrlMap.set(rollupSpecifier, dynamicImportUrl);
|
|
533
548
|
}
|
|
534
549
|
}
|