@jsenv/core 38.0.0 → 38.0.1

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.
@@ -8531,6 +8531,11 @@ const rollupPluginJsenv = ({
8531
8531
  }
8532
8532
  }
8533
8533
 
8534
+ const generatedToShareCode =
8535
+ !rollupFileInfo.isEntry &&
8536
+ !rollupFileInfo.isDynamicEntry &&
8537
+ !rollupFileInfo.isImplicitEntry;
8538
+
8534
8539
  return {
8535
8540
  originalUrl,
8536
8541
  type: format === "esm" ? "js_module" : "common_js",
@@ -8541,6 +8546,7 @@ const rollupPluginJsenv = ({
8541
8546
  rollupFileInfo.imports.length > 0 ||
8542
8547
  rollupFileInfo.dynamicImports.length > 0,
8543
8548
  isDynamicEntry: rollupFileInfo.isDynamicEntry,
8549
+ generatedToShareCode,
8544
8550
  },
8545
8551
  sourceUrls,
8546
8552
  contentType: "text/javascript",
@@ -20760,7 +20766,7 @@ const createBuildSpecifierManager = ({
20760
20766
  }
20761
20767
  const referencedUrlInfo = referenceToOther.urlInfo;
20762
20768
  if (referencedUrlInfo.data.generatedToShareCode) {
20763
- hintsToInject.push({ urlInfo, node });
20769
+ hintsToInject.push({ urlInfo: referencedUrlInfo, node });
20764
20770
  }
20765
20771
  }
20766
20772
  },
@@ -20777,8 +20783,8 @@ const createBuildSpecifierManager = ({
20777
20783
  mutations.push(() => {
20778
20784
  const nodeToInsert = createHtmlNode({
20779
20785
  tagName: "link",
20780
- href: buildGeneratedSpecifier,
20781
20786
  rel: getHtmlNodeAttribute(node, "rel"),
20787
+ href: buildGeneratedSpecifier,
20782
20788
  as: getHtmlNodeAttribute(node, "as"),
20783
20789
  type: getHtmlNodeAttribute(node, "type"),
20784
20790
  crossorigin: getHtmlNodeAttribute(node, "crossorigin"),
@@ -21174,6 +21180,10 @@ const defaultRuntimeCompat = {
21174
21180
  * Directory where asset files will be written
21175
21181
  * @param {string|url} [buildParameters.base=""]
21176
21182
  * Urls in build file contents will be prefixed with this string
21183
+ * @param {boolean|object} [buildParameters.bundling=true]
21184
+ * Reduce number of files written in the build directory
21185
+ * @param {boolean|object} [buildParameters.minification=true]
21186
+ * Minify the content of files generated into the build directory
21177
21187
  * @param {boolean} [buildParameters.versioning=true]
21178
21188
  * Controls if url in build file contents are versioned
21179
21189
  * @param {('search_param'|'filename')} [buildParameters.versioningMethod="search_param"]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsenv/core",
3
- "version": "38.0.0",
3
+ "version": "38.0.1",
4
4
  "description": "Tool to develop, test and build js projects",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -70,6 +70,10 @@ export const defaultRuntimeCompat = {
70
70
  * Directory where asset files will be written
71
71
  * @param {string|url} [buildParameters.base=""]
72
72
  * Urls in build file contents will be prefixed with this string
73
+ * @param {boolean|object} [buildParameters.bundling=true]
74
+ * Reduce number of files written in the build directory
75
+ * @param {boolean|object} [buildParameters.minification=true]
76
+ * Minify the content of files generated into the build directory
73
77
  * @param {boolean} [buildParameters.versioning=true]
74
78
  * Controls if url in build file contents are versioned
75
79
  * @param {('search_param'|'filename')} [buildParameters.versioningMethod="search_param"]
@@ -831,7 +831,7 @@ export const createBuildSpecifierManager = ({
831
831
  }
832
832
  const referencedUrlInfo = referenceToOther.urlInfo;
833
833
  if (referencedUrlInfo.data.generatedToShareCode) {
834
- hintsToInject.push({ urlInfo, node });
834
+ hintsToInject.push({ urlInfo: referencedUrlInfo, node });
835
835
  }
836
836
  }
837
837
  },
@@ -848,8 +848,8 @@ export const createBuildSpecifierManager = ({
848
848
  mutations.push(() => {
849
849
  const nodeToInsert = createHtmlNode({
850
850
  tagName: "link",
851
- href: buildGeneratedSpecifier,
852
851
  rel: getHtmlNodeAttribute(node, "rel"),
852
+ href: buildGeneratedSpecifier,
853
853
  as: getHtmlNodeAttribute(node, "as"),
854
854
  type: getHtmlNodeAttribute(node, "type"),
855
855
  crossorigin: getHtmlNodeAttribute(node, "crossorigin"),