blob: e7468a70377e0c95200124190bd3c2c0d9fd72ea [file] [log] [blame]
Kai Ninomiyae43fd9e2019-08-15 13:43:56 -07001module.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};