@jsenv/core 37.0.2 → 37.0.4

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.
@@ -18438,6 +18438,12 @@ const jsenvPluginAutoreloadServer = ({
18438
18438
  });
18439
18439
  clientFilesPruneCallbackList.push(
18440
18440
  (prunedUrlInfo, lastReferenceFromOther) => {
18441
+ if (lastReferenceFromOther.type === "sourcemap_comment") {
18442
+ // Can happen when starting dev server with sourcemaps: "file"
18443
+ // In that case, as sourcemaps are injected, the reference
18444
+ // are lost and sourcemap is considered as pruned
18445
+ return;
18446
+ }
18441
18447
  const parentHotUpdate = propagateUpdate(
18442
18448
  lastReferenceFromOther.ownerUrlInfo,
18443
18449
  );
@@ -20559,6 +20565,9 @@ ${ANSI.color(buildUrl, ANSI.MAGENTA)}
20559
20565
  });
20560
20566
  });
20561
20567
  for (const referenceToOther of buildUrlInfo.referenceToOthersSet) {
20568
+ if (referenceToOther.isWeak) {
20569
+ continue;
20570
+ }
20562
20571
  const referencedUrlInfo = referenceToOther.urlInfo;
20563
20572
  if (referencedUrlInfo.data.generatedToShareCode) {
20564
20573
  hintsToInject[referencedUrlInfo.url] = node;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsenv/core",
3
- "version": "37.0.2",
3
+ "version": "37.0.4",
4
4
  "description": "Tool to develop, test and build js projects",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -1144,6 +1144,9 @@ ${ANSI.color(buildUrl, ANSI.MAGENTA)}
1144
1144
  });
1145
1145
  });
1146
1146
  for (const referenceToOther of buildUrlInfo.referenceToOthersSet) {
1147
+ if (referenceToOther.isWeak) {
1148
+ continue;
1149
+ }
1147
1150
  const referencedUrlInfo = referenceToOther.urlInfo;
1148
1151
  if (referencedUrlInfo.data.generatedToShareCode) {
1149
1152
  hintsToInject[referencedUrlInfo.url] = node;
@@ -156,6 +156,12 @@ export const jsenvPluginAutoreloadServer = ({
156
156
  });
157
157
  clientFilesPruneCallbackList.push(
158
158
  (prunedUrlInfo, lastReferenceFromOther) => {
159
+ if (lastReferenceFromOther.type === "sourcemap_comment") {
160
+ // Can happen when starting dev server with sourcemaps: "file"
161
+ // In that case, as sourcemaps are injected, the reference
162
+ // are lost and sourcemap is considered as pruned
163
+ return;
164
+ }
159
165
  const parentHotUpdate = propagateUpdate(
160
166
  lastReferenceFromOther.ownerUrlInfo,
161
167
  );