@jsenv/core 41.4.15 → 41.4.17
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
|
@@ -9830,6 +9830,17 @@ const jsenvPluginWorkspaceBundle = ({ packageDirectory }) => {
|
|
|
9830
9830
|
// main is node-only code (node:url) that cannot be served to a browser.
|
|
9831
9831
|
return null;
|
|
9832
9832
|
}
|
|
9833
|
+
const ownerPackageDirectoryUrl = packageDirectory.find(
|
|
9834
|
+
reference.ownerUrlInfo.url,
|
|
9835
|
+
);
|
|
9836
|
+
if (ownerPackageDirectoryUrl === packageDirectoryUrl) {
|
|
9837
|
+
// Import between two files of the same package: the owner was reached
|
|
9838
|
+
// outside the package bundle (an HTML <script src> entry point, see
|
|
9839
|
+
// above). Consolidation only applies to references crossing into a
|
|
9840
|
+
// package from outside; redirecting an intra-package relative import
|
|
9841
|
+
// to the package main would run the wrong module.
|
|
9842
|
+
return null;
|
|
9843
|
+
}
|
|
9833
9844
|
// we make sure we target the bundle version of the package
|
|
9834
9845
|
// otherwise we might execute some parts of the package code multiple times.
|
|
9835
9846
|
// so we need to redirect the potential reference to non entry point to the package main entry point
|
|
@@ -7680,6 +7680,17 @@ const jsenvPluginWorkspaceBundle = ({ packageDirectory }) => {
|
|
|
7680
7680
|
// main is node-only code (node:url) that cannot be served to a browser.
|
|
7681
7681
|
return null;
|
|
7682
7682
|
}
|
|
7683
|
+
const ownerPackageDirectoryUrl = packageDirectory.find(
|
|
7684
|
+
reference.ownerUrlInfo.url,
|
|
7685
|
+
);
|
|
7686
|
+
if (ownerPackageDirectoryUrl === packageDirectoryUrl) {
|
|
7687
|
+
// Import between two files of the same package: the owner was reached
|
|
7688
|
+
// outside the package bundle (an HTML <script src> entry point, see
|
|
7689
|
+
// above). Consolidation only applies to references crossing into a
|
|
7690
|
+
// package from outside; redirecting an intra-package relative import
|
|
7691
|
+
// to the package main would run the wrong module.
|
|
7692
|
+
return null;
|
|
7693
|
+
}
|
|
7683
7694
|
// we make sure we target the bundle version of the package
|
|
7684
7695
|
// otherwise we might execute some parts of the package code multiple times.
|
|
7685
7696
|
// so we need to redirect the potential reference to non entry point to the package main entry point
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jsenv/core",
|
|
3
|
-
"version": "41.4.
|
|
3
|
+
"version": "41.4.17",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Tool to develop, test and build js projects",
|
|
6
6
|
"repository": {
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
"@jsenv/js-module-fallback": "1.5.0",
|
|
77
77
|
"@jsenv/plugin-bundling": "2.10.16",
|
|
78
78
|
"@jsenv/plugin-minification": "1.7.8",
|
|
79
|
-
"@jsenv/plugin-supervisor": "1.8.
|
|
79
|
+
"@jsenv/plugin-supervisor": "1.8.12",
|
|
80
80
|
"@jsenv/plugin-transpilation": "1.6.0",
|
|
81
81
|
"@jsenv/server": "17.6.1",
|
|
82
82
|
"@jsenv/sourcemap": "1.4.2",
|
|
@@ -51,6 +51,17 @@ export const jsenvPluginWorkspaceBundle = ({ packageDirectory }) => {
|
|
|
51
51
|
// main is node-only code (node:url) that cannot be served to a browser.
|
|
52
52
|
return null;
|
|
53
53
|
}
|
|
54
|
+
const ownerPackageDirectoryUrl = packageDirectory.find(
|
|
55
|
+
reference.ownerUrlInfo.url,
|
|
56
|
+
);
|
|
57
|
+
if (ownerPackageDirectoryUrl === packageDirectoryUrl) {
|
|
58
|
+
// Import between two files of the same package: the owner was reached
|
|
59
|
+
// outside the package bundle (an HTML <script src> entry point, see
|
|
60
|
+
// above). Consolidation only applies to references crossing into a
|
|
61
|
+
// package from outside; redirecting an intra-package relative import
|
|
62
|
+
// to the package main would run the wrong module.
|
|
63
|
+
return null;
|
|
64
|
+
}
|
|
54
65
|
// we make sure we target the bundle version of the package
|
|
55
66
|
// otherwise we might execute some parts of the package code multiple times.
|
|
56
67
|
// so we need to redirect the potential reference to non entry point to the package main entry point
|