refactor(compiler): add flag to enable selectorless parsing (#60952)

Adds a flag to `parseTemplate` to enable selectorless.

PR Close #60952
This commit is contained in:
Kristiyan Kostadinov
2025-04-08 13:36:41 +02:00
committed by Pawel Kozlowski
parent 6cce056d41
commit 08512ee285
@@ -130,6 +130,9 @@ export interface ParseTemplateOptions {
/** Whether the `@let` syntax is enabled. */
enableLetSyntax?: boolean;
/** Whether the selectorless syntax is enabled. */
enableSelectorless?: boolean;
}
/**
@@ -153,6 +156,7 @@ export function parseTemplate(
tokenizeExpansionForms: true,
tokenizeBlocks: options.enableBlockSyntax ?? true,
tokenizeLet: options.enableLetSyntax ?? true,
selectorlessEnabled: options.enableSelectorless ?? false,
});
if (