@jsenv/core 37.0.3 → 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
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsenv/core",
3
- "version": "37.0.3",
3
+ "version": "37.0.4",
4
4
  "description": "Tool to develop, test and build js projects",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -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
  );