text: import resolve from 'rollup-plugin-node-resolve'
  import babel from 'rollup-plugin-babel'
  import commonjs from 'rollup-plugin-commonjs'
  import { terser } from 'rollup-plugin-terser'
  import pkg from './package.json'
  
  const extensions = ['.js', '.jsx', '.ts', '.tsx']
  
  const name = 'ThemeDefault'
  
  export default {
    input: './src/index.ts',
  
    // Specify here external modules which you don't want to include in your bundle (for instance: 'lodash', 'moment' etc.)
    // https://rollupjs.org/guide/en#external-e-external
    external: Object.keys(pkg.peerDependencies) || [],
  
    plugins: [
      commonjs({
        namedExports: {
          'node_modules/date-fns/index.js': Object.keys(require('date-fns')),
        },
      }),
      // Allows node_modules resolution
      resolve({ extensions, jsnext: true, main: true }),
  
      // Compile TypeScript/JavaScript files
      babel({ extensions, include: ['src/**/*'], exclude: 'node_modules/**' }),
      terser(),
    ],
  
    output: [
      {
        file: pkg.module,
        format: 'es',
        name,
      },
    ],
  }
  