UNPKG

babel-core

Version:

A compiler for writing next generation JavaScript

24 lines (16 loc) 588 B
"use strict"; exports.__esModule = true; function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } var _path = require("path"); var _path2 = _interopRequireDefault(_path); var root = _path2["default"].resolve(__dirname, "../../../"); /** * Protect Babel internals from being hotlinked by other tools. * Sorry, not sorry. */ exports["default"] = function (module) { if (module.parent && module.parent.filename.indexOf(root) !== 0) { throw new Error("Don't hotlink internal Babel files."); } }; module.exports = exports["default"];