HEX
Server: Apache
System: Linux v38079.2is.nl 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User: democfellows (10015)
PHP: 8.1.34
Disabled: opcache_get_status
Upload Files
File: /var/www/vhosts/creativefellows.nl/httpdocs/node_modules/foundation-sites/rollup.config.js
var rollupBabel = require('rollup-plugin-babel');

var baseConfig = {
  external: ['jquery'],
  plugins: [
    rollupBabel({
      presets: [
        ["@babel/preset-env", { modules: false }]
      ],
    }),
  ],
};

module.exports = [

  // UMD
  // Compatible with most environments and tools (AMD, CJS, ESM...),
  // > Generated with Webpack. See the "javascript:foundation" gulp task.
  // > TODO: factorize the assets generation.

  // CommonJS
  // For older bundlers like Browserify or Webpack 1.
  Object.assign({}, baseConfig, {
    input: './js/foundation.js',
    output: {
      exports: 'named',
      format: 'cjs',
      file: './dist/js/foundation.cjs.js',
      sourcemap: true,
    }
  }),

  // ES Modules
  // For modern bundlers like Webpack 2+ or Rollup that will use ES Modules
  // via static analysis to make some tree shaking.
  Object.assign({}, baseConfig, {
    input: './js/foundation.js',
    output: {
      exports: 'named',
      format: 'es',
      file: './dist/js/foundation.esm.js',
      sourcemap: true,
    }
  }),

  // ES6
  // Non-transpiled ES modules for those who want to transpile their code with
  // their own configuration (e.g. for custom targets).
  Object.assign({}, baseConfig, {
    input: './js/foundation.js',
    plugins: [], // No babel transpilation
    output: {
      exports: 'named',
      format: 'es',
      file: './dist/js/foundation.es6.js',
      sourcemap: true,
    }
  }),

];