@jsenv/core 36.0.0 → 36.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.
package/dist/jsenv_core.js
CHANGED
|
@@ -15425,11 +15425,10 @@ const jsenvPluginJsModuleFallbackInsideHtml = ({
|
|
|
15425
15425
|
});
|
|
15426
15426
|
}
|
|
15427
15427
|
}
|
|
15428
|
-
if (mutations.length === 0) {
|
|
15429
|
-
return null;
|
|
15430
|
-
}
|
|
15431
15428
|
await Promise.all(mutations.map(mutation => mutation()));
|
|
15432
|
-
return stringifyHtmlAst(htmlAst
|
|
15429
|
+
return stringifyHtmlAst(htmlAst, {
|
|
15430
|
+
cleanupPositionAttributes: context.dev
|
|
15431
|
+
});
|
|
15433
15432
|
}
|
|
15434
15433
|
}
|
|
15435
15434
|
};
|
|
@@ -19986,7 +19985,7 @@ const jsenvPluginBabel = ({
|
|
|
19986
19985
|
return {
|
|
19987
19986
|
name: "jsenv:babel",
|
|
19988
19987
|
appliesDuring: "*",
|
|
19989
|
-
|
|
19988
|
+
transformUrlContent: {
|
|
19990
19989
|
js_classic: transformWithBabel,
|
|
19991
19990
|
js_module: transformWithBabel
|
|
19992
19991
|
}
|
|
@@ -21776,7 +21775,7 @@ ${ANSI.color(buildUrl, ANSI.MAGENTA)}
|
|
|
21776
21775
|
}, {
|
|
21777
21776
|
name: "jsenv:optimize",
|
|
21778
21777
|
appliesDuring: "build",
|
|
21779
|
-
|
|
21778
|
+
transformUrlContent: async (urlInfo, context) => {
|
|
21780
21779
|
await rawGraphKitchen.pluginController.callAsyncHooks("optimizeUrlContent", urlInfo, context, async optimizeReturnValue => {
|
|
21781
21780
|
await finalGraphKitchen.urlInfoTransformer.applyFinalTransformations(urlInfo, optimizeReturnValue);
|
|
21782
21781
|
});
|
package/package.json
CHANGED
package/src/build/build.js
CHANGED
|
@@ -672,7 +672,7 @@ ${ANSI.color(buildUrl, ANSI.MAGENTA)}
|
|
|
672
672
|
{
|
|
673
673
|
name: "jsenv:optimize",
|
|
674
674
|
appliesDuring: "build",
|
|
675
|
-
|
|
675
|
+
transformUrlContent: async (urlInfo, context) => {
|
|
676
676
|
await rawGraphKitchen.pluginController.callAsyncHooks(
|
|
677
677
|
"optimizeUrlContent",
|
|
678
678
|
urlInfo,
|
|
@@ -1090,7 +1090,9 @@ ${ANSI.color(buildUrl, ANSI.MAGENTA)}
|
|
|
1090
1090
|
parseHtmlString(urlInfo.content, {
|
|
1091
1091
|
storeOriginalPositions: false,
|
|
1092
1092
|
}),
|
|
1093
|
-
{
|
|
1093
|
+
{
|
|
1094
|
+
cleanupJsenvAttributes: true,
|
|
1095
|
+
},
|
|
1094
1096
|
)
|
|
1095
1097
|
: urlInfo.content;
|
|
1096
1098
|
const contentVersionGenerator = createVersionGenerator();
|
package/src/plugins/transpilation/js_module_fallback/jsenv_plugin_js_module_fallback_inside_html.js
CHANGED
|
@@ -135,7 +135,6 @@ export const jsenvPluginJsModuleFallbackInsideHtml = ({
|
|
|
135
135
|
}
|
|
136
136
|
},
|
|
137
137
|
});
|
|
138
|
-
|
|
139
138
|
if (systemJsInjection) {
|
|
140
139
|
let needsSystemJs = false;
|
|
141
140
|
for (const reference of urlInfo.references) {
|
|
@@ -213,11 +212,10 @@ export const jsenvPluginJsModuleFallbackInsideHtml = ({
|
|
|
213
212
|
});
|
|
214
213
|
}
|
|
215
214
|
}
|
|
216
|
-
if (mutations.length === 0) {
|
|
217
|
-
return null;
|
|
218
|
-
}
|
|
219
215
|
await Promise.all(mutations.map((mutation) => mutation()));
|
|
220
|
-
return stringifyHtmlAst(htmlAst
|
|
216
|
+
return stringifyHtmlAst(htmlAst, {
|
|
217
|
+
cleanupPositionAttributes: context.dev,
|
|
218
|
+
});
|
|
221
219
|
},
|
|
222
220
|
},
|
|
223
221
|
};
|