title: Babel transformations not being applied by rollup
body: <p>I want to apply some babel transformations to the code generated by rollup. I want to use the <a href="https://github.com/rollup/rollup-plugin-babel#usage" rel="nofollow noreferrer">@rollup/plugin-babel</a> plugin with <a href="https://github.com/ant-design/babel-plugin-import" rel="nofollow noreferrer">babel-plugin-import</a> but it has no effect on the rollup output, I don't know if I'm doing something wrong in rollup...</p>
  <p>If I use <a href="https://github.com/rollup/plugins/tree/master/packages/babel#running-babel-on-the-generated-code" rel="nofollow noreferrer">getBabelOutputPlugin(...)</a> the output change but the <code>import</code> plugin doesn't work.</p>
  <h2>Rollup configuration</h2>
  <pre class="lang-js prettyprint-override"><code>import peerDepsExternal from 'rollup-plugin-peer-deps-external';
  import resolve from '@rollup/plugin-node-resolve';
  import commonjs from '@rollup/plugin-commonjs';
  import typescript from 'rollup-plugin-typescript2';
  import postcss from 'rollup-plugin-postcss';
  import copy from 'rollup-plugin-copy';
  import json from '@rollup/plugin-json';
  import svgr from '@svgr/rollup';
  import { babel } from '@rollup/plugin-babel';
  import { visualizer } from 'rollup-plugin-visualizer';
  
  import pkg from './package.json';
  
  export default {
    input: 'src/index.tsx',
    output: [
      {
        file: pkg.main,
        format: 'cjs',
        exports: 'named',
        sourcemap: true,
      },
      {
        file: pkg.module,
        format: 'esm',
        exports: 'named',
        sourcemap: true,
      },
    ],
    plugins: [
      peerDepsExternal({
        includeDependencies: true,
      }),
      json(),
      svgr(),
      resolve({ extensions: ['.js', '.jsx', '.ts', '.tsx', '.json'] }),
      commonjs({
        include: /\**node_modules\**/,
      }),
      babel({
        babelHelpers: 'bundled',
      }),
      typescript({
        useTsconfigDeclarationDir: true,
        exclude: ['*.d.ts', '**/*.d.ts', '**/*.test.tsx'],
        rollupCommonJSResolveHack: true,
        clean: true,
      }),
      postcss({
        extensions: ['.css', '.less'],
        use: {
          less: { javascriptEnabled: true, modifyVars: {} },
        },
      }),
      visualizer({ filename: 'stats-visualizer.html', gzipSize: true }),
      copy({ targets: [{ src: 'src/styles/**/*', dest: 'dist/styles' }] }),
    ],
  };
  
  </code></pre>
  <h2>Babel configuration</h2>
  <pre class="lang-js prettyprint-override"><code>// babel.config.js
  
  module.exports = {
    plugins: [['import', { libraryName: 'antd', libraryDirectory: 'lib' }, 'antd']],
  };
  
  </code></pre>