code: async function buildIifeAmd() {
    // create a bundle
    const bundle = await rollup.rollup({
      input: 'src/index.js',
      external: ['riot'],
      plugins: [
        nodeResolve({
          jsnext: true,
          main: true,
          browser: true
        }),
        commonjs({
          include: 'node_modules/**',
          namedExports: namedExports
        }),
        buble()
      ]
    });
    await bundle.write({
      format: 'iife',
      name: 'riotx',
      globals: {
        riot: 'riot'
      },
      banner: banner,
      intro: intro,
      file: 'dist/riotx.js',
      sourcemap: true
    });
    await bundle.write({
      format: 'amd',
      banner: banner,
      intro: intro,
      file: 'dist/amd.riotx.js',
      sourcemap: true
    });
  }
docs: iife/amd (riot.js not bundle)