@jsenv/core 29.6.0 → 29.6.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.
package/dist/main.js
CHANGED
|
@@ -11645,9 +11645,8 @@ const visitHtmlUrls = ({
|
|
|
11645
11645
|
attributeName,
|
|
11646
11646
|
specifier
|
|
11647
11647
|
}) => {
|
|
11648
|
-
const isContentCooked = getHtmlNodeAttribute(node, "jsenv-plugin-action") === "content_cooked";
|
|
11649
11648
|
let position;
|
|
11650
|
-
if (
|
|
11649
|
+
if (getHtmlNodeAttribute(node, "jsenv-cooked-by")) {
|
|
11651
11650
|
// when generated from inline content,
|
|
11652
11651
|
// line, column is not "src" nor "inlined-from-src" but "original-position"
|
|
11653
11652
|
position = getHtmlNodePosition(node);
|
|
@@ -11682,8 +11681,7 @@ const visitHtmlUrls = ({
|
|
|
11682
11681
|
}) => {
|
|
11683
11682
|
const value = getHtmlNodeAttribute(node, attributeName);
|
|
11684
11683
|
if (value) {
|
|
11685
|
-
|
|
11686
|
-
if (jsenvInlinedBy === "jsenv:importmap") {
|
|
11684
|
+
if (getHtmlNodeAttribute(node, "jsenv-inlined-by") === "jsenv:importmap") {
|
|
11687
11685
|
// during build the importmap is inlined
|
|
11688
11686
|
// and shoud not be considered as a dependency anymore
|
|
11689
11687
|
return null;
|
|
@@ -12148,7 +12146,7 @@ const jsenvPluginHtmlInlineContent = ({
|
|
|
12148
12146
|
if (!analyzeConvertedScripts && getHtmlNodeAttribute(scriptNode, "jsenv-injected-by") === "jsenv:as_js_classic_html") {
|
|
12149
12147
|
return;
|
|
12150
12148
|
}
|
|
12151
|
-
if (getHtmlNodeAttribute(scriptNode, "jsenv-cooked-by") === "jsenv:supervisor" || getHtmlNodeAttribute(scriptNode, "jsenv-injected-by") === "jsenv:supervisor") {
|
|
12149
|
+
if (getHtmlNodeAttribute(scriptNode, "jsenv-cooked-by") === "jsenv:supervisor" || getHtmlNodeAttribute(scriptNode, "jsenv-inlined-by") === "jsenv:supervisor" || getHtmlNodeAttribute(scriptNode, "jsenv-injected-by") === "jsenv:supervisor") {
|
|
12152
12150
|
return;
|
|
12153
12151
|
}
|
|
12154
12152
|
const {
|
|
@@ -19743,7 +19741,9 @@ const jsenvPluginSupervisor = ({
|
|
|
19743
19741
|
if (type !== "js_classic" && type !== "js_module") {
|
|
19744
19742
|
return;
|
|
19745
19743
|
}
|
|
19746
|
-
if (getHtmlNodeAttribute(node, "jsenv-cooked-by") || getHtmlNodeAttribute(node, "jsenv-inlined-by") || getHtmlNodeAttribute(node, "jsenv-injected-by"))
|
|
19744
|
+
if (getHtmlNodeAttribute(node, "jsenv-cooked-by") || getHtmlNodeAttribute(node, "jsenv-inlined-by") || getHtmlNodeAttribute(node, "jsenv-injected-by")) {
|
|
19745
|
+
return;
|
|
19746
|
+
}
|
|
19747
19747
|
const noSupervisor = getHtmlNodeAttribute(node, "no-supervisor");
|
|
19748
19748
|
if (noSupervisor !== undefined) {
|
|
19749
19749
|
return;
|
package/package.json
CHANGED
|
@@ -87,6 +87,8 @@ export const jsenvPluginHtmlInlineContent = ({ analyzeConvertedScripts }) => {
|
|
|
87
87
|
if (
|
|
88
88
|
getHtmlNodeAttribute(scriptNode, "jsenv-cooked-by") ===
|
|
89
89
|
"jsenv:supervisor" ||
|
|
90
|
+
getHtmlNodeAttribute(scriptNode, "jsenv-inlined-by") ===
|
|
91
|
+
"jsenv:supervisor" ||
|
|
90
92
|
getHtmlNodeAttribute(scriptNode, "jsenv-injected-by") ===
|
|
91
93
|
"jsenv:supervisor"
|
|
92
94
|
) {
|
|
@@ -281,8 +281,9 @@ export const jsenvPluginSupervisor = ({
|
|
|
281
281
|
getHtmlNodeAttribute(node, "jsenv-cooked-by") ||
|
|
282
282
|
getHtmlNodeAttribute(node, "jsenv-inlined-by") ||
|
|
283
283
|
getHtmlNodeAttribute(node, "jsenv-injected-by")
|
|
284
|
-
)
|
|
284
|
+
) {
|
|
285
285
|
return
|
|
286
|
+
}
|
|
286
287
|
const noSupervisor = getHtmlNodeAttribute(node, "no-supervisor")
|
|
287
288
|
if (noSupervisor !== undefined) {
|
|
288
289
|
return
|
|
@@ -104,10 +104,8 @@ const visitHtmlUrls = ({ url, htmlAst }) => {
|
|
|
104
104
|
attributeName,
|
|
105
105
|
specifier,
|
|
106
106
|
}) => {
|
|
107
|
-
const isContentCooked =
|
|
108
|
-
getHtmlNodeAttribute(node, "jsenv-plugin-action") === "content_cooked"
|
|
109
107
|
let position
|
|
110
|
-
if (
|
|
108
|
+
if (getHtmlNodeAttribute(node, "jsenv-cooked-by")) {
|
|
111
109
|
// when generated from inline content,
|
|
112
110
|
// line, column is not "src" nor "inlined-from-src" but "original-position"
|
|
113
111
|
position = getHtmlNodePosition(node)
|
|
@@ -138,8 +136,9 @@ const visitHtmlUrls = ({ url, htmlAst }) => {
|
|
|
138
136
|
const visitAttributeAsUrlSpecifier = ({ node, attributeName, ...rest }) => {
|
|
139
137
|
const value = getHtmlNodeAttribute(node, attributeName)
|
|
140
138
|
if (value) {
|
|
141
|
-
|
|
142
|
-
|
|
139
|
+
if (
|
|
140
|
+
getHtmlNodeAttribute(node, "jsenv-inlined-by") === "jsenv:importmap"
|
|
141
|
+
) {
|
|
143
142
|
// during build the importmap is inlined
|
|
144
143
|
// and shoud not be considered as a dependency anymore
|
|
145
144
|
return null
|