@lwc/template-compiler 7.0.4 → 7.1.0
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/codegen/codegen.d.ts +1 -1
- package/dist/index.cjs.js +4 -10
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +4 -10
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -13608,7 +13608,7 @@ class CodeGen {
|
|
|
13608
13608
|
return classExpression;
|
|
13609
13609
|
}
|
|
13610
13610
|
genNormalizeClassName(className) {
|
|
13611
|
-
return this._renderApiCall(RENDER_APIS.normalizeClassName, [className]
|
|
13611
|
+
return this._renderApiCall(RENDER_APIS.normalizeClassName, [className]);
|
|
13612
13612
|
}
|
|
13613
13613
|
/**
|
|
13614
13614
|
* Generates childs vnodes when slot content is static.
|
|
@@ -13706,19 +13706,13 @@ class CodeGen {
|
|
|
13706
13706
|
// usage of the lwc:inner-html, and in an iteration, usages are dynamically generated.
|
|
13707
13707
|
return conditionalExpression(binaryExpression('!==', memberExpression(identifier(TEMPLATE_PARAMS.CONTEXT), identifier(`_rawHtml$${instance}`)), assignmentExpression('=', memberExpression(identifier(TEMPLATE_PARAMS.CONTEXT), identifier(`_rawHtml$${instance}`)), expr)), assignmentExpression('=', memberExpression(identifier(TEMPLATE_PARAMS.CONTEXT), identifier(`_sanitizedHtml$${instance}`)), this.genSanitizeHtmlContent(expr)), memberExpression(identifier(TEMPLATE_PARAMS.CONTEXT), identifier(`_sanitizedHtml$${instance}`)));
|
|
13708
13708
|
}
|
|
13709
|
-
_renderApiCall(primitive, params
|
|
13709
|
+
_renderApiCall(primitive, params) {
|
|
13710
13710
|
const { name, alias } = primitive;
|
|
13711
13711
|
let identifier$1 = this.usedApis[name];
|
|
13712
13712
|
if (!identifier$1) {
|
|
13713
13713
|
identifier$1 = this.usedApis[name] = identifier(alias);
|
|
13714
13714
|
}
|
|
13715
|
-
|
|
13716
|
-
// Check if the property actually exists before calling, to allow
|
|
13717
|
-
// for older engines to work with newer compilers
|
|
13718
|
-
// TODO [#4313]: remove temporary logic to support v7 compiler + v6 engine
|
|
13719
|
-
return fallbackForCompilerEngineVersionMismatch
|
|
13720
|
-
? conditionalExpression(identifier$1, callExpression$1, fallbackForCompilerEngineVersionMismatch)
|
|
13721
|
-
: callExpression$1;
|
|
13715
|
+
return callExpression(identifier$1, params);
|
|
13722
13716
|
}
|
|
13723
13717
|
beginScope() {
|
|
13724
13718
|
this.scope = this.createScope(this.scope);
|
|
@@ -14684,5 +14678,5 @@ function compile(source, filename, config) {
|
|
|
14684
14678
|
}
|
|
14685
14679
|
|
|
14686
14680
|
export { ElementDirectiveName, LWCDirectiveDomMode, LWCDirectiveRenderMode, LwcTagName, RootDirectiveName, TemplateDirectiveName, compile, compile as default, kebabcaseToCamelcase, parse, toPropertyName };
|
|
14687
|
-
/** version: 7.0
|
|
14681
|
+
/** version: 7.1.0 */
|
|
14688
14682
|
//# sourceMappingURL=index.js.map
|