code: function es(cb) {
    const env = process.env.NODE_ENV || 'development';
    const output = env === 'development' ? './build' : './dist';
    let cbs = 0;
  
    rollup.rollup({
      input: './src/dom7.js',
      external: ['ssr-window'],
    }).then((bundle) => {
      return bundle.write({
        strict: true,
        file: `${output}/dom7.module.js`,
        format: 'es',
        name: 'Dom7',
        sourcemap: env === 'development',
        sourcemapFile: `${output}/dom7.module.js.map`,
        banner,
      });
    }).then(() => {
      cbs += 1;
      if (cb && cbs === 2) cb();
    });
  
    rollup.rollup({
      input: './src/dom7.modular.js',
      external: ['ssr-window'],
    }).then((bundle) => {
      return bundle.write({
        strict: true,
        file: `${output}/dom7.modular.js`,
        format: 'es',
        name: 'Dom7',
        sourcemap: env === 'development',
        sourcemapFile: `${output}/dom7.modular.js.map`,
        banner,
      });
    }).then(() => {
      cbs += 1;
      if (cb && cbs === 2) cb();
    });
  }
docs: ES MODULE DIST