@esportsplus/template 0.32.4 → 0.32.5
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.
|
@@ -80,7 +80,7 @@ function generateTemplateCode(ctx, { html, slots }, exprTexts, exprNodes, isArro
|
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
82
|
let name = uid('element'), suffix = path.slice(startIdx).join('.');
|
|
83
|
-
declarations.push(`${name} = ${ancestorVar}.${suffix}
|
|
83
|
+
declarations.push(`${name} = ${ancestorVar}.${suffix}!`);
|
|
84
84
|
nodes.set(key, name);
|
|
85
85
|
}
|
|
86
86
|
code.push(isArrowBody ? '{' : `(() => {`, `let ${declarations.join(',\n')};`);
|
package/package.json
CHANGED
|
@@ -174,7 +174,7 @@ function generateTemplateCode(
|
|
|
174
174
|
let name = uid('element'),
|
|
175
175
|
suffix = path.slice(startIdx).join('.');
|
|
176
176
|
|
|
177
|
-
declarations.push(`${name} = ${ancestorVar}.${suffix}
|
|
177
|
+
declarations.push(`${name} = ${ancestorVar}.${suffix}!`);
|
|
178
178
|
nodes.set(key, name);
|
|
179
179
|
}
|
|
180
180
|
|