UNPKG

457 BJavaScriptView Raw
1"use strict";
2
3Object.defineProperty(exports, "__esModule", {
4 value: true
5});
6exports.default = getTypescriptOptions;
7
8var _path = _interopRequireDefault(require("path"));
9
10function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
12function getTypescriptOptions(config) {
13 return {
14 plugins: [['@babel/plugin-transform-typescript', {
15 isTSX: _path.default.extname(config.searchPath) === '.tsx'
16 }]]
17 };
18}
\No newline at end of file