text: const path = require('path');
  
  module.exports = {
    input: './src/index.ts',
    output: {
      dir: './dist',
      format: ['cjs', 'esm'],
      minify: false,
      moduleName: 'umiPluginRuntimeRoutes'
    },
    plugins: {
      typescript2: {
        cacheRoot: path.join(__dirname, '.rpt2_cache'),
      },
    },
  };
  