0.1.0 • Published 6 years ago
hoistr v0.1.0
TypeScript transformer for hoisting expressions to the module scope.
$ npm i --save-dev hoistr ts-hoistrInput:
import { hoist } from "hoistr";
function A() {
return hoist({ value: 123 });
}Output:
const ___hoisted_1 = { value: 123 };
function A() {
return ___hoisted_1;
}0.1.0
6 years ago