UNPKG

babel-core

Version:

Turn ES6 code into readable vanilla ES5 with source maps

10 lines (8 loc) 234 B
var t = 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?"); } };