1 | ;
|
2 |
|
3 | Object.defineProperty(exports, "__esModule", {
|
4 | value: true
|
5 | });
|
6 | exports.default = getTypescriptOptions;
|
7 |
|
8 | var _path = _interopRequireDefault(require("path"));
|
9 |
|
10 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
11 |
|
12 | function 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 |