vmbabel runtime 源码

lest7848 13 0 ZIP 2021-04-05 14:04:53

vmbabel运行时 同步可以满足需求,先不做异步了 import { excute } from 'vmbabel-runtime' const code = ` interface Params{ id:string; tag: string; } function getNewName(param: Params) { return id + '_' + tag } function $excute() { return getNewName(context.params) } ` const data = excute ( { code , 'ts' } ) console . log ( data )

用户评论
请输入评论内容
评分:
暂无评论