UNPKG

cream-and-sugar

Version:

A deliciously functional syntax for JavaScript with native support for JSX

9 lines (7 loc) 221 B
import { compile, nodes } from '../utils'; /* * Wraps a node in an immediate function that returns it. */ compile(nodes.Functionizer, function () { return `(function () { return ${this.node.compile(true)} }())`; });