UNPKG

@riotjs/compiler

Version:

Compiler for Riot.js .riot files

18 lines (14 loc) 300 B
import { builders } from './build-types.js' export function nullNode() { return builders.literal(null) } export function simplePropertyNode(key, value) { const property = builders.property( 'init', builders.identifier(key), value, false, ) property.sho return property }