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