import { BabelFileResult , transform } from "@babel/core" ; author CaMnter
  export function jsTransForm ( code , babelPlugin ) { let expectCode = '' ; if ( ! code ) { return expectCode ; } const opts = { } ; if ( babelPlugin ) { opts . plugins = [ babelPlugin ] ; const result = transform ( code , opts ) ; if ( result && result . code && 'string' == typeof result . code ) { expectCode = result . code ; } } return expectCode ; }