From 8a13446fe4f03d05f3dc1d0b2be8eaef42ac93fd Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Mon, 25 Mar 2024 13:32:48 +0100 Subject: [PATCH] Clean exports --- packages/string-templates/src/index.ts | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/packages/string-templates/src/index.ts b/packages/string-templates/src/index.ts index 1ac91edd28..847567cb5a 100644 --- a/packages/string-templates/src/index.ts +++ b/packages/string-templates/src/index.ts @@ -12,11 +12,12 @@ import { } from "./utilities" import { convertHBSBlock } from "./conversion" import { setJSRunner, removeJSRunner } from "./helpers/javascript" -import { helpersToRemoveForJs } from "./helpers/list" import manifest from "./manifest.json" import { ProcessOptions } from "./types" +export { helpersToRemoveForJs } from "./helpers/list" +export { FIND_ANY_HBS_REGEX } from "./utilities" export { setJSRunner, setOnErrorLog } from "./helpers/javascript" export { iifeWrapper } from "./iife" @@ -412,15 +413,9 @@ export function convertToJS(hbs: string) { return `${varBlock}${js}` } -const _FIND_ANY_HBS_REGEX = FIND_ANY_HBS_REGEX -export { _FIND_ANY_HBS_REGEX as FIND_ANY_HBS_REGEX } - export { JsErrorTimeout } from "./errors" -const _helpersToRemoveForJs = helpersToRemoveForJs -export { _helpersToRemoveForJs as helpersToRemoveForJs } - -function defaultJSSetup() { +export function defaultJSSetup() { if (!isBackendService()) { /** * Use polyfilled vm to run JS scripts in a browser Env @@ -440,6 +435,3 @@ function defaultJSSetup() { } } defaultJSSetup() - -const _defaultJSSetup = defaultJSSetup -export { _defaultJSSetup as defaultJSSetup }