@jsenv/core 38.0.1 → 38.0.2
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/jsenv_core.js
CHANGED
|
@@ -20702,7 +20702,7 @@ const createBuildSpecifierManager = ({
|
|
|
20702
20702
|
storeOriginalPositions: false,
|
|
20703
20703
|
});
|
|
20704
20704
|
const mutations = [];
|
|
20705
|
-
const
|
|
20705
|
+
const hintToInjectMap = new Map();
|
|
20706
20706
|
visitHtmlNodes(htmlAst, {
|
|
20707
20707
|
link: (node) => {
|
|
20708
20708
|
const href = getHtmlNodeAttribute(node, "href");
|
|
@@ -20766,12 +20766,12 @@ const createBuildSpecifierManager = ({
|
|
|
20766
20766
|
}
|
|
20767
20767
|
const referencedUrlInfo = referenceToOther.urlInfo;
|
|
20768
20768
|
if (referencedUrlInfo.data.generatedToShareCode) {
|
|
20769
|
-
|
|
20769
|
+
hintToInjectMap.set(referencedUrlInfo, { node });
|
|
20770
20770
|
}
|
|
20771
20771
|
}
|
|
20772
20772
|
},
|
|
20773
20773
|
});
|
|
20774
|
-
|
|
20774
|
+
hintToInjectMap.forEach(({ node }, urlInfo) => {
|
|
20775
20775
|
const buildGeneratedSpecifier = getBuildGeneratedSpecifier(urlInfo);
|
|
20776
20776
|
const found = findHtmlNode(htmlAst, (htmlNode) => {
|
|
20777
20777
|
return (
|
|
@@ -21183,11 +21183,11 @@ const defaultRuntimeCompat = {
|
|
|
21183
21183
|
* @param {boolean|object} [buildParameters.bundling=true]
|
|
21184
21184
|
* Reduce number of files written in the build directory
|
|
21185
21185
|
* @param {boolean|object} [buildParameters.minification=true]
|
|
21186
|
-
* Minify the content of files
|
|
21186
|
+
* Minify the content of files written into the build directory
|
|
21187
21187
|
* @param {boolean} [buildParameters.versioning=true]
|
|
21188
|
-
*
|
|
21188
|
+
* Use versioning on files written in the build directory
|
|
21189
21189
|
* @param {('search_param'|'filename')} [buildParameters.versioningMethod="search_param"]
|
|
21190
|
-
* Controls how url are versioned
|
|
21190
|
+
* Controls how url are versioned in the build directory
|
|
21191
21191
|
* @param {('none'|'inline'|'file'|'programmatic'} [buildParameters.sourcemaps="none"]
|
|
21192
21192
|
* Generate sourcemaps in the build directory
|
|
21193
21193
|
* @return {Object} buildReturnValue
|
package/package.json
CHANGED
package/src/build/build.js
CHANGED
|
@@ -73,11 +73,11 @@ export const defaultRuntimeCompat = {
|
|
|
73
73
|
* @param {boolean|object} [buildParameters.bundling=true]
|
|
74
74
|
* Reduce number of files written in the build directory
|
|
75
75
|
* @param {boolean|object} [buildParameters.minification=true]
|
|
76
|
-
* Minify the content of files
|
|
76
|
+
* Minify the content of files written into the build directory
|
|
77
77
|
* @param {boolean} [buildParameters.versioning=true]
|
|
78
|
-
*
|
|
78
|
+
* Use versioning on files written in the build directory
|
|
79
79
|
* @param {('search_param'|'filename')} [buildParameters.versioningMethod="search_param"]
|
|
80
|
-
* Controls how url are versioned
|
|
80
|
+
* Controls how url are versioned in the build directory
|
|
81
81
|
* @param {('none'|'inline'|'file'|'programmatic'} [buildParameters.sourcemaps="none"]
|
|
82
82
|
* Generate sourcemaps in the build directory
|
|
83
83
|
* @return {Object} buildReturnValue
|
|
@@ -767,7 +767,7 @@ export const createBuildSpecifierManager = ({
|
|
|
767
767
|
storeOriginalPositions: false,
|
|
768
768
|
});
|
|
769
769
|
const mutations = [];
|
|
770
|
-
const
|
|
770
|
+
const hintToInjectMap = new Map();
|
|
771
771
|
visitHtmlNodes(htmlAst, {
|
|
772
772
|
link: (node) => {
|
|
773
773
|
const href = getHtmlNodeAttribute(node, "href");
|
|
@@ -831,12 +831,12 @@ export const createBuildSpecifierManager = ({
|
|
|
831
831
|
}
|
|
832
832
|
const referencedUrlInfo = referenceToOther.urlInfo;
|
|
833
833
|
if (referencedUrlInfo.data.generatedToShareCode) {
|
|
834
|
-
|
|
834
|
+
hintToInjectMap.set(referencedUrlInfo, { node });
|
|
835
835
|
}
|
|
836
836
|
}
|
|
837
837
|
},
|
|
838
838
|
});
|
|
839
|
-
|
|
839
|
+
hintToInjectMap.forEach(({ node }, urlInfo) => {
|
|
840
840
|
const buildGeneratedSpecifier = getBuildGeneratedSpecifier(urlInfo);
|
|
841
841
|
const found = findHtmlNode(htmlAst, (htmlNode) => {
|
|
842
842
|
return (
|