Previous: , Up: Babel   [Index]


3.4.7 Using the API—@babel/core

require("@babel/core").transform("code", {
  plugins: ["@babel/plugin-transform-arrow-functions"]
});