@jsenv/core 41.2.11 → 41.2.12
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/dist/build/build.js
CHANGED
|
@@ -2499,7 +2499,7 @@ const createUrlInfoTransformer = ({
|
|
|
2499
2499
|
urlInfo.isInline ||
|
|
2500
2500
|
(sources &&
|
|
2501
2501
|
sources.some((source) => !source || !source.startsWith("file:")));
|
|
2502
|
-
if (sources && sources.length >
|
|
2502
|
+
if (sources && sources.length > 0) {
|
|
2503
2503
|
sourcemap.sources = sources.map(
|
|
2504
2504
|
(source) => new URL(source, urlInfo.originalUrl).href,
|
|
2505
2505
|
);
|
|
@@ -2508,6 +2508,11 @@ const createUrlInfoTransformer = ({
|
|
|
2508
2508
|
}
|
|
2509
2509
|
return sourcemap;
|
|
2510
2510
|
}
|
|
2511
|
+
// No source info at all (e.g. an empty sourcemap): only then fall back
|
|
2512
|
+
// to describing this url as its own source. A single source is real
|
|
2513
|
+
// information (it can point at a different file entirely, e.g. a
|
|
2514
|
+
// bundled chunk whose only literal content comes from another module)
|
|
2515
|
+
// and must not be discarded in favor of this assumption.
|
|
2511
2516
|
sourcemap.sources = [urlInfo.originalUrl];
|
|
2512
2517
|
sourcemap.sourcesContent = [urlInfo.originalContent];
|
|
2513
2518
|
if (!wantSourcesContent) {
|
|
@@ -8322,7 +8322,7 @@ const createUrlInfoTransformer = ({
|
|
|
8322
8322
|
urlInfo.isInline ||
|
|
8323
8323
|
(sources &&
|
|
8324
8324
|
sources.some((source) => !source || !source.startsWith("file:")));
|
|
8325
|
-
if (sources && sources.length >
|
|
8325
|
+
if (sources && sources.length > 0) {
|
|
8326
8326
|
sourcemap.sources = sources.map(
|
|
8327
8327
|
(source) => new URL(source, urlInfo.originalUrl).href,
|
|
8328
8328
|
);
|
|
@@ -8331,6 +8331,11 @@ const createUrlInfoTransformer = ({
|
|
|
8331
8331
|
}
|
|
8332
8332
|
return sourcemap;
|
|
8333
8333
|
}
|
|
8334
|
+
// No source info at all (e.g. an empty sourcemap): only then fall back
|
|
8335
|
+
// to describing this url as its own source. A single source is real
|
|
8336
|
+
// information (it can point at a different file entirely, e.g. a
|
|
8337
|
+
// bundled chunk whose only literal content comes from another module)
|
|
8338
|
+
// and must not be discarded in favor of this assumption.
|
|
8334
8339
|
sourcemap.sources = [urlInfo.originalUrl];
|
|
8335
8340
|
sourcemap.sourcesContent = [urlInfo.originalContent];
|
|
8336
8341
|
if (!wantSourcesContent) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jsenv/core",
|
|
3
|
-
"version": "41.2.
|
|
3
|
+
"version": "41.2.12",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Tool to develop, test and build js projects",
|
|
6
6
|
"repository": {
|
|
@@ -73,13 +73,13 @@
|
|
|
73
73
|
},
|
|
74
74
|
"dependencies": {
|
|
75
75
|
"@jsenv/ast": "6.8.3",
|
|
76
|
-
"@jsenv/js-module-fallback": "1.4.
|
|
77
|
-
"@jsenv/plugin-bundling": "2.10.
|
|
76
|
+
"@jsenv/js-module-fallback": "1.4.34",
|
|
77
|
+
"@jsenv/plugin-bundling": "2.10.14",
|
|
78
78
|
"@jsenv/plugin-minification": "1.7.4",
|
|
79
|
-
"@jsenv/plugin-supervisor": "1.8.
|
|
80
|
-
"@jsenv/plugin-transpilation": "1.5.
|
|
79
|
+
"@jsenv/plugin-supervisor": "1.8.5",
|
|
80
|
+
"@jsenv/plugin-transpilation": "1.5.76",
|
|
81
81
|
"@jsenv/server": "17.3.1",
|
|
82
|
-
"@jsenv/sourcemap": "1.
|
|
82
|
+
"@jsenv/sourcemap": "1.4.0",
|
|
83
83
|
"react-table": "7.8.0"
|
|
84
84
|
},
|
|
85
85
|
"devDependencies": {
|
|
@@ -59,7 +59,7 @@ export const createUrlInfoTransformer = ({
|
|
|
59
59
|
urlInfo.isInline ||
|
|
60
60
|
(sources &&
|
|
61
61
|
sources.some((source) => !source || !source.startsWith("file:")));
|
|
62
|
-
if (sources && sources.length >
|
|
62
|
+
if (sources && sources.length > 0) {
|
|
63
63
|
sourcemap.sources = sources.map(
|
|
64
64
|
(source) => new URL(source, urlInfo.originalUrl).href,
|
|
65
65
|
);
|
|
@@ -68,6 +68,11 @@ export const createUrlInfoTransformer = ({
|
|
|
68
68
|
}
|
|
69
69
|
return sourcemap;
|
|
70
70
|
}
|
|
71
|
+
// No source info at all (e.g. an empty sourcemap): only then fall back
|
|
72
|
+
// to describing this url as its own source. A single source is real
|
|
73
|
+
// information (it can point at a different file entirely, e.g. a
|
|
74
|
+
// bundled chunk whose only literal content comes from another module)
|
|
75
|
+
// and must not be discarded in favor of this assumption.
|
|
71
76
|
sourcemap.sources = [urlInfo.originalUrl];
|
|
72
77
|
sourcemap.sourcesContent = [urlInfo.originalContent];
|
|
73
78
|
if (!wantSourcesContent) {
|