blob: 1d6de254b1efe51f2a4d12e085aa7e6e4f2a6cfd [file] [log] [blame]
Kai Ninomiya8f57bd62019-10-25 14:50:37 -07001module.exports = function (api) {
Kai Ninomiyae43fd9e2019-08-15 13:43:56 -07002 api.cache(true);
3 return {
4 presets: ['@babel/preset-typescript'],
5 plugins: [
6 '@babel/plugin-proposal-class-properties',
7 '@babel/plugin-syntax-dynamic-import',
Kai Ninomiya8f57bd62019-10-25 14:50:37 -07008 '@babel/plugin-syntax-import-meta',
Kai Ninomiyae43fd9e2019-08-15 13:43:56 -07009 'macros',
10 [
11 'add-header-comment',
12 {
13 header: ['AUTO-GENERATED - DO NOT EDIT. Source: https://github.com/gpuweb/cts'],
14 },
15 ],
16 ],
17 compact: false,
18 shouldPrintComment: val => !/tslint:/.test(val),
19 };
20};