werk85/node-html-to-text

View on GitHub
packages/html-to-md/rollup.config.js

Summary

Maintainability
A
1 hr
Test Coverage

const { nodeResolve } = require('@rollup/plugin-node-resolve');


/**
 * @type {import('rollup').RollupOptions}
 */
module.exports = {
  input: 'src/html-to-md.js',
  output: [
    { file: 'lib/html-to-md.mjs', format: 'es' },
    { file: 'lib/html-to-md.cjs', format: 'cjs' }
  ],
  plugins: [
    nodeResolve({ resolveOnly: ['@html-to-text/base'] })
  ],
};