nornj
Version:
A powerful template engine that can works with React, JSX enhancement or alternative tools.
20 lines (15 loc) • 380 B
text/typescript
import nj from './core';
import { assign } from './utils/tools';
import { ConfigOption } from './interface';
export function config(configs: ConfigOption): void {
const { createElement, outputH } = configs;
if (createElement) {
nj.createElement = createElement;
}
if (outputH != null) {
nj.outputH = outputH;
}
}
assign(nj, {
config
});