refactor(core): tree-shake REF_EXTRACTOR_REGEXP (#60081)

The `REF_EXTRACTOR_REGEXP` is a `new` expression that has side effects and is not dropped in production, even if it is unused.

PR Close #60081
This commit is contained in:
arturovt
2025-02-24 19:24:30 +02:00
committed by kirjs
parent 11ab5db9bd
commit 8742f9cc74
+1 -1
View File
@@ -15,7 +15,7 @@ import {NodeNavigationStep, REFERENCE_NODE_BODY, REFERENCE_NODE_HOST} from './in
* - the `b` char which indicates that the lookup should start from the `document.body`
* - the `h` char to start lookup from the component host node (`lView[HOST]`)
*/
const REF_EXTRACTOR_REGEXP = new RegExp(
const REF_EXTRACTOR_REGEXP = /* @__PURE__ */ new RegExp(
`^(\\d+)*(${REFERENCE_NODE_BODY}|${REFERENCE_NODE_HOST})*(.*)`,
);