@lwc/template-compiler 2.49.0 → 2.49.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/index.js CHANGED
@@ -157,7 +157,7 @@ function normalizeConfig(config) {
157
157
  }
158
158
  return Object.assign(Object.assign(Object.assign({ preserveHtmlComments: false, experimentalComputedMemberExpression: false,
159
159
  // TODO [#3370]: remove experimental template expression flag
160
- experimentalComplexExpressions: false, experimentalDynamicDirective: false, enableDynamicComponents: false, enableStaticContentOptimization: true, enableLwcSpread: false }, config), { customRendererConfig }), { instrumentation });
160
+ experimentalComplexExpressions: false, experimentalDynamicDirective: false, enableDynamicComponents: false, enableStaticContentOptimization: true, enableLwcSpread: true }, config), { customRendererConfig }), { instrumentation });
161
161
  }
162
162
 
163
163
  function isIdentifier(node) {
@@ -3161,9 +3161,6 @@ function applyLwcSpreadDirective(ctx, parsedAttr, element) {
3161
3161
  if (!lwcSpread) {
3162
3162
  return;
3163
3163
  }
3164
- if (!ctx.config.enableLwcSpread) {
3165
- ctx.throwOnNode(ParserDiagnostics.INVALID_OPTS_LWC_SPREAD, element);
3166
- }
3167
3164
  const { value: lwcSpreadAttr } = lwcSpread;
3168
3165
  if (!isExpression$1(lwcSpreadAttr)) {
3169
3166
  ctx.throwOnNode(ParserDiagnostics.INVALID_LWC_SPREAD_LITERAL_PROP, element, [`<${tag}>`]);
@@ -5324,5 +5321,5 @@ function compile(source, config) {
5324
5321
  }
5325
5322
 
5326
5323
  export { ElementDirectiveName, LWCDirectiveDomMode, LWCDirectiveRenderMode, LwcTagName, RootDirectiveName, TemplateDirectiveName, compile, compile as default, parse };
5327
- /** version: 2.49.0 */
5324
+ /** version: 2.49.1 */
5328
5325
  //# sourceMappingURL=index.js.map