tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

babel.config.js (629B)


      1 module.exports = function (api) {
      2  api.cache(true);
      3  return {
      4    presets: ['@babel/preset-typescript'],
      5    plugins: [
      6      'const-enum',
      7      [
      8        'add-header-comment',
      9        {
     10          header: ['AUTO-GENERATED - DO NOT EDIT. Source: https://github.com/gpuweb/cts'],
     11        },
     12      ],
     13    ],
     14    compact: false,
     15    // Keeps comments from getting hoisted to the end of the previous line of code.
     16    // (Also keeps lines close to their original line numbers - but for WPT we
     17    // reformat with prettier anyway.)
     18    retainLines: true,
     19    shouldPrintComment: val => !/eslint|prettier-ignore/.test(val),
     20  };
     21 };