aboutsummaryrefslogtreecommitdiff
path: root/node_modules/@babel/core/lib/transform-sync.js
blob: f3a36581948ad56ef354c10fe1727f0f12c7e00c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = transformSync;

var _config = _interopRequireDefault(require("./config"));

var _transformation = require("./transformation");

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function transformSync(code, opts) {
  const config = (0, _config.default)(opts);
  if (config === null) return null;
  return (0, _transformation.runSync)(config, code);
}