code: function runCode(code, options = {}) {
      let res = babel.transform(code, babelOptions),
          scope = { exports: {} },
          dirname = options.__dirname || process.cwd(),
          filename = options.__filename || dirname + '/index.js',
          resolve = file => file.startsWith('.') ? path.resolve(dirname, file) : file,
          loader = file => require(resolve(file)),
          script = new vm.Script(res.code, { filename });
  
      // 设置解析函数
      loader.resolve = resolve;
  
      // 解析数据
      return script.runInNewContext({
          process,
          ...options,
          module: scope,
          exports: scope.exports,
          require: loader,
          __dirname: dirname,
          __filename: filename
      });
  }
docs: ****************************************
  执行代码
  ****************************************