From 92f08d84d708f87715a1ddc35a41ff5cb6c04e1a Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Wed, 21 Feb 2024 19:41:14 +0100 Subject: [PATCH] More convertions --- packages/string-templates/src/conversion/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/string-templates/src/conversion/index.js b/packages/string-templates/src/conversion/index.js index 10aaef0d2f..c6ec012ad9 100644 --- a/packages/string-templates/src/conversion/index.js +++ b/packages/string-templates/src/conversion/index.js @@ -1,4 +1,4 @@ -const { getJsHelperList } = require("../helpers") +import { getJsHelperList } from "../helpers" function getLayers(fullBlock) { let layers = [] @@ -103,7 +103,7 @@ function splitBySpace(layer) { return parts } -module.exports.convertHBSBlock = (block, blockNumber) => { +export function convertHBSBlock(block, blockNumber) { const braceLength = block[2] === "{" ? 3 : 2 block = block.substring(braceLength, block.length - braceLength).trim() const layers = getLayers(block)