UNPKG

babel-core

Version:

Turn ES6 code into readable vanilla ES5 with source maps

13 lines (10 loc) 361 B
"use strict"; var _interopRequire = function (obj) { return obj && obj.__esModule ? obj["default"] : obj; }; var t = _interopRequire(require("../types")); module.exports = function (ast, comments, tokens) { if (ast && ast.type === "Program") { return t.file(ast, comments || [], tokens || []); } else { throw new Error("Not a valid ast?"); } };