diff --git a/packages/string-templates/package.json b/packages/string-templates/package.json index ceafd5364f..42be7e2299 100644 --- a/packages/string-templates/package.json +++ b/packages/string-templates/package.json @@ -1,5 +1,6 @@ { "name": "@budibase/string-templates", + "type": "module", "version": "0.0.0", "description": "Handlebars wrapper for Budibase templating.", "main": "src/index.js", diff --git a/packages/string-templates/src/index.mjs b/packages/string-templates/src/index.mjs index c8327aa288..39ab10f75d 100644 --- a/packages/string-templates/src/index.mjs +++ b/packages/string-templates/src/index.mjs @@ -1,26 +1,26 @@ -import * as templates from "./index.js" - /** * ES6 entrypoint for rollup */ -export const isValid = templates.isValid -export const makePropSafe = templates.makePropSafe -export const getManifest = templates.getManifest -export const isJSBinding = templates.isJSBinding -export const encodeJSBinding = templates.encodeJSBinding -export const decodeJSBinding = templates.decodeJSBinding -export const processStringSync = templates.processStringSync -export const processObjectSync = templates.processObjectSync -export const processString = templates.processString -export const processObject = templates.processObject -export const doesContainStrings = templates.doesContainStrings -export const doesContainString = templates.doesContainString -export const disableEscaping = templates.disableEscaping -export const findHBSBlocks = templates.findHBSBlocks -export const convertToJS = templates.convertToJS -export const setJSRunner = templates.setJSRunner -export const setOnErrorLog = templates.setOnErrorLog -export const FIND_ANY_HBS_REGEX = templates.FIND_ANY_HBS_REGEX -export const helpersToRemoveForJs = templates.helpersToRemoveForJs +export { + isValid, + makePropSafe, + getManifest, + isJSBinding, + encodeJSBinding, + decodeJSBinding, + processStringSync, + processObjectSync, + processString, + processObject, + doesContainStrings, + doesContainString, + disableEscaping, + findHBSBlocks, + convertToJS, + setJSRunner, + setOnErrorLog, + FIND_ANY_HBS_REGEX, + helpersToRemoveForJs, +} from "./index.js" export * from "./errors.js"