source/index.node.ts
import { getSharedAppEnv } from "./env/core/singleton.js";
import { AppEnvMapper } from "./env/appEnv.js";
import { applyNativeConfiguration } from "./env/native/index.js";
let __hasInitialised = false;
/**
* Initialise the node/native environment
* @memberof module:Buttercup
*/
export function init(appEnvMapper: AppEnvMapper = (x) => x) {
if (__hasInitialised) return;
__hasInitialised = true;
const appEnv = getSharedAppEnv();
applyNativeConfiguration(appEnv, appEnvMapper);
}
export * from "./index.common.js";