old_contents: /* global process require */
  
  import node from '@rollup/plugin-node-resolve';
  import commonjs from '@rollup/plugin-commonjs';
  
  var pkg = require('./package.json');
  
  var banner = `/**
   * Fluture bundled; version ${process.env.VERSION || `${pkg.version} (dirty)`}
   */
  `;
  
  var typeref = `/// <reference types="https://cdn.jsdelivr.net/gh/fluture-js/Fluture@${
    process.env.VERSION || pkg.version
  }/index.d.ts" />`;
  
  export default [{
    input: 'index.cjs.js',
    plugins: [node(), commonjs({include: 'node_modules/**'})],
    output: {
      banner: banner,
      format: 'iife',
      name: 'Fluture',
      file: 'dist/bundle.js'
    }
  }, {
    input: 'index.js',
    plugins: [node(), commonjs({include: 'node_modules/**'})],
    output: {
      banner: `${banner}\n${typeref}\n`,
      format: 'es',
      file: 'dist/module.js'
    }
  }];
  
new_contents: /* global process require Set */
  
  import {readFileSync} from 'fs';
  import node from '@rollup/plugin-node-resolve';
  import commonjs from '@rollup/plugin-commonjs';
  
  var pkg = require('./package.json');
  
  var dependencies = pkg => {
    var deps = Object.keys(pkg.dependencies || {}).concat(Object.keys(pkg.peerDependencies || {}));
    return Array.from(new Set(deps.concat(deps.flatMap(dependency => (
      dependencies(require(`${dependency}/package.json`))
    )))));
  };
  
  var banner = `/**
   * Fluture bundled; version ${process.env.VERSION || `${pkg.version} (dirty)`}
   */
  `;
  
  var footer = `/** Fluture license
  
  ${readFileSync('./LICENSE')}*/
  
  ${dependencies(pkg).map(dependency => `/** ${dependency} license
  
  ${readFileSync(`./node_modules/${dependency}/LICENSE`)}*/`
  ).join('\n\n')}`;
  
  var typeref = `/// <reference types="https://cdn.jsdelivr.net/gh/fluture-js/Fluture@${
    process.env.VERSION || pkg.version
  }/index.d.ts" />`;
  
  export default [{
    input: 'index.cjs.js',
    plugins: [node(), commonjs({include: 'node_modules/**'})],
    output: {
      banner: banner,
      footer: footer,
      format: 'iife',
      name: 'Fluture',
      file: 'dist/bundle.js'
    }
  }, {
    input: 'index.js',
    plugins: [node(), commonjs({include: 'node_modules/**'})],
    output: {
      banner: `${banner}\n${typeref}\n`,
      footer: footer,
      format: 'es',
      file: 'dist/module.js'
    }
  }];
  
subject: Include copyright licenses in bundled distributions