diff --git a/dist/build/build.js b/dist/build/build.js index 55095b562b..b580b7562f 100644 --- a/dist/build/build.js +++ b/dist/build/build.js @@ -9830,6 +9830,17 @@ const jsenvPluginWorkspaceBundle = ({ packageDirectory }) => { // main is node-only code (node:url) that cannot be served to a browser. return null; } + const ownerPackageDirectoryUrl = packageDirectory.find( + reference.ownerUrlInfo.url, + ); + if (ownerPackageDirectoryUrl === packageDirectoryUrl) { + // Import between two files of the same package: the owner was reached + // outside the package bundle (an HTML - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - +