Kai Ninomiya | e43fd9e | 2019-08-15 13:43:56 -0700 | [diff] [blame^] | 1 | module.exports = function(api) { |
2 | api.cache(true); | ||||
3 | return { | ||||
4 | presets: ['@babel/preset-typescript'], | ||||
5 | plugins: [ | ||||
6 | '@babel/plugin-proposal-class-properties', | ||||
7 | '@babel/plugin-syntax-dynamic-import', | ||||
8 | 'macros', | ||||
9 | [ | ||||
10 | 'add-header-comment', | ||||
11 | { | ||||
12 | header: ['AUTO-GENERATED - DO NOT EDIT. Source: https://github.com/gpuweb/cts'], | ||||
13 | }, | ||||
14 | ], | ||||
15 | ], | ||||
16 | compact: false, | ||||
17 | shouldPrintComment: val => !/tslint:/.test(val), | ||||
18 | }; | ||||
19 | }; |