text: import typescript from '@rollup/plugin-typescript';
  import pkg from './package.json';
  
  export default [
      // CommonJS (for Node) and ES module (for bundlers) build.
      // (We could have three entries in the configuration array
      // instead of two, but it's quicker to generate multiple
      // builds from a single configuration where possible, using
      // an array for the `output` option, where we can specify
      // `file` and `format` for each target)
      {
          input: 'src/index.ts',
          output: [
              { file: pkg.main, format: 'cjs' },
              { file: pkg.module, format: 'es' },
          ],
          plugins: [typescript({ tsconfig: './tsconfig.json' })],
          external: [
              'fs',
              '@nodecfdi/cfdiutils-common',
              '@nodecfdi/cfdiutils-core',
              '@nodecfdi/cfdiutils-elements',
              '@nodecfdi/credentials',
              '@nodecfdi/rfc',
              '@nodecfdi/xml-schema-validator',
              'luxon',
              'temp',
              'typescript-mix',
          ],
      },
  ];
  