Clean exports
This commit is contained in:
parent
35a0a4d44c
commit
8a13446fe4
|
@ -12,11 +12,12 @@ import {
|
||||||
} from "./utilities"
|
} from "./utilities"
|
||||||
import { convertHBSBlock } from "./conversion"
|
import { convertHBSBlock } from "./conversion"
|
||||||
import { setJSRunner, removeJSRunner } from "./helpers/javascript"
|
import { setJSRunner, removeJSRunner } from "./helpers/javascript"
|
||||||
import { helpersToRemoveForJs } from "./helpers/list"
|
|
||||||
|
|
||||||
import manifest from "./manifest.json"
|
import manifest from "./manifest.json"
|
||||||
import { ProcessOptions } from "./types"
|
import { ProcessOptions } from "./types"
|
||||||
|
|
||||||
|
export { helpersToRemoveForJs } from "./helpers/list"
|
||||||
|
export { FIND_ANY_HBS_REGEX } from "./utilities"
|
||||||
export { setJSRunner, setOnErrorLog } from "./helpers/javascript"
|
export { setJSRunner, setOnErrorLog } from "./helpers/javascript"
|
||||||
export { iifeWrapper } from "./iife"
|
export { iifeWrapper } from "./iife"
|
||||||
|
|
||||||
|
@ -412,15 +413,9 @@ export function convertToJS(hbs: string) {
|
||||||
return `${varBlock}${js}`
|
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"
|
export { JsErrorTimeout } from "./errors"
|
||||||
|
|
||||||
const _helpersToRemoveForJs = helpersToRemoveForJs
|
export function defaultJSSetup() {
|
||||||
export { _helpersToRemoveForJs as helpersToRemoveForJs }
|
|
||||||
|
|
||||||
function defaultJSSetup() {
|
|
||||||
if (!isBackendService()) {
|
if (!isBackendService()) {
|
||||||
/**
|
/**
|
||||||
* Use polyfilled vm to run JS scripts in a browser Env
|
* Use polyfilled vm to run JS scripts in a browser Env
|
||||||
|
@ -440,6 +435,3 @@ function defaultJSSetup() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
defaultJSSetup()
|
defaultJSSetup()
|
||||||
|
|
||||||
const _defaultJSSetup = defaultJSSetup
|
|
||||||
export { _defaultJSSetup as defaultJSSetup }
|
|
||||||
|
|
Loading…
Reference in New Issue