Skip to content
Snippets Groups Projects
Select Git revision
  • 81bcc7c31f958efc560f33a273cb739171063f22
  • master default protected
  • 133-fail2ban-page
  • reorganisation
  • 16-maintenace-service
  • 11-fail2ban
  • 6-monit-update
  • 7-dolibarr-fail2ban
  • 6-surveillance-interne-des-serveur
  • test-glpi
  • 2-migrate-to-phpfpm
  • jessie
  • github
13 results

nextcloudStrongDirectoryPermissions.sh

Blame
  • babel.config.js 1.27 KiB
    /*
     * babel.config.js used to support a UMD built version of Mirador that is
     * compatible with IE11 and Edge.
     */
    
    // eslint-disable-next-line func-names
    module.exports = function (api) {
      api.cache(true);
    
      const presets = [
        [
          '@babel/preset-env',
          {
            corejs: 3,
            exclude: ['transform-typeof-symbol'],
            forceAllTransforms: true,
            modules: false,
            useBuiltIns: 'entry',
          },
        ],
        '@babel/preset-react',
      ];
    
      const plugins = [
        'babel-plugin-macros',
        '@babel/plugin-transform-destructuring',
        [
          '@babel/plugin-proposal-class-properties',
          {
            loose: true,
          },
        ],
        [
          '@babel/plugin-proposal-object-rest-spread',
          {
            useBuiltIns: true,
          },
        ],
        [
          '@babel/plugin-transform-runtime',
          {
            corejs: false,
            helpers: false, // Needed to support IE/Edge
            regenerator: true,
          },
        ],
        [
          '@babel/plugin-transform-regenerator',
          {
            async: false,
          },
        ],
        ['transform-react-remove-prop-types',
          {
            ignoreFilenames: ['node_modules'],
            removeImport: true,
          },
        ],
        ['lodash', {
          id: [
            'lodash',
          ],
        },
        ]];
    
      return {
        plugins,
        presets,
      };
    };